Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
-
COPY requirements.txt requirements.txt
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
|
|
|
| 10 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Use Official Python Image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
+
# Set Working Directory
|
| 5 |
WORKDIR /app
|
|
|
|
| 6 |
|
| 7 |
+
# Copy Files
|
| 8 |
+
COPY requirements.txt /app/requirements.txt
|
| 9 |
+
COPY app.py /app/app.py
|
| 10 |
+
COPY config.json /app/config.json
|
| 11 |
|
| 12 |
+
# Install Dependencies
|
| 13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
# Run App
|
| 16 |
CMD ["python", "app.py"]
|