Update Dockerfile
Browse files- Dockerfile +17 -2
Dockerfile
CHANGED
|
@@ -1,2 +1,17 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Base image
|
| 2 |
+
FROM python:3.12-slim
|
| 3 |
+
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install dependencies
|
| 8 |
+
RUN pip install --no-cache-dir requests gradio
|
| 9 |
+
|
| 10 |
+
# Copy app
|
| 11 |
+
COPY app.py /app/app.py
|
| 12 |
+
|
| 13 |
+
# Expose port 7860
|
| 14 |
+
EXPOSE 7860
|
| 15 |
+
|
| 16 |
+
# Run the app
|
| 17 |
+
CMD ["python", "app.py"]
|