MightyOctopus commited on
Commit
4904d13
·
verified ·
1 Parent(s): db0b1b5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Base Image
2
+ FROM python:3.10-slim
3
+
4
+ ### Set working directory
5
+ WORKDIR /app
6
+
7
+ ### Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ clang \
11
+ && ln -s /usr/bin/clang++ /usr/bin/clangpp || true \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+
15
+ ### Copy requirements.txt and install Python dependencies
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ ### Copy the app code
20
+ COPY . .
21
+
22
+ ### Gradio default port
23
+ EXPOSE 7860
24
+
25
+ ### Run the app
26
+ CMD ["python", "app.py"]