Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -15,6 +15,9 @@ RUN mkdir -p /cache/huggingface /cache/matplotlib \
|
|
| 15 |
ENV HF_HOME=/cache/huggingface
|
| 16 |
ENV MPLCONFIGDIR=/cache/matplotlib
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Install dependencies
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 20 |
|
|
@@ -25,4 +28,4 @@ COPY . .
|
|
| 25 |
EXPOSE 5000
|
| 26 |
|
| 27 |
# Run the application
|
| 28 |
-
CMD ["
|
|
|
|
| 15 |
ENV HF_HOME=/cache/huggingface
|
| 16 |
ENV MPLCONFIGDIR=/cache/matplotlib
|
| 17 |
|
| 18 |
+
# Flask
|
| 19 |
+
ENV FLASK_APP=app.py
|
| 20 |
+
|
| 21 |
# Install dependencies
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
|
|
|
| 28 |
EXPOSE 5000
|
| 29 |
|
| 30 |
# Run the application
|
| 31 |
+
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]
|