Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10.11-alpine3.18
|
| 2 |
+
|
| 3 |
+
WORKDIR app/
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt requirements.txt
|
| 6 |
+
|
| 7 |
+
RUN pip3 install --upgrade pip setuptools wheel
|
| 8 |
+
RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt
|
| 9 |
+
RUN pip install flask
|
| 10 |
+
COPY . .
|
| 11 |
+
|
| 12 |
+
RUN chmod 777 /app
|
| 13 |
+
|
| 14 |
+
CMD ["python3", "app.py"]
|