Commit
·
6b27b28
1
Parent(s):
641f4f1
update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
RUN
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
|
| 16 |
-
# Expose
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
# Run your app
|
| 20 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Dockerfile (updated)
|
|
|
|
| 2 |
|
| 3 |
+
FROM python:3.10-slim
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Copy all project files
|
| 7 |
COPY . /app
|
| 8 |
|
| 9 |
+
# Change ownership to allow writing
|
| 10 |
+
RUN chmod -R a+w /app
|
| 11 |
|
| 12 |
+
# Install dependencies
|
| 13 |
+
RUN pip install --no-cache-dir flask
|
| 14 |
|
| 15 |
+
# Expose default port
|
| 16 |
EXPOSE 7860
|
| 17 |
|
|
|
|
| 18 |
CMD ["python", "app.py"]
|