Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
# Install potrace and other system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
potrace \
|
6 |
+
&& rm -rf /var/lib/apt/lists/*
|
7 |
+
|
8 |
+
# Set the working directory
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
# Copy the application files
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
# Install Python dependencies
|
15 |
+
RUN pip install --upgrade pip
|
16 |
+
RUN pip install -r requirements.txt
|
17 |
+
|
18 |
+
# Run the Gradio application
|
19 |
+
CMD ["python", "app.py"]
|