Spaces:
Running
Running
Clement Vachet
commited on
Commit
•
8419da3
1
Parent(s):
98d351c
Add dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a lightweight Python base image
|
2 |
+
FROM python:3.11-slim
|
3 |
+
|
4 |
+
# Set working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the rest of the application code
|
8 |
+
COPY . .
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Expose port for the application
|
14 |
+
EXPOSE 7860
|
15 |
+
|
16 |
+
# Ensure Gradio listens on all network interfaces
|
17 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
18 |
+
|
19 |
+
CMD ["python", "app.py"]
|