Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -9
Dockerfile
CHANGED
|
@@ -9,20 +9,17 @@ USER user
|
|
| 9 |
# Set the PATH for user's local installations
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 11 |
|
| 12 |
-
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
-
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
-
|
| 20 |
COPY --chown=user . /app
|
| 21 |
|
| 22 |
-
# Command to run your Flask app
|
| 23 |
-
# Flask typically uses a WSGI server like Gunicorn or directly app.run() for simple cases.
|
| 24 |
-
# For a simple Flask app to run, you can use:
|
| 25 |
-
CMD ["python","app.py"] # This assumes app.py has app.run(host="0.0.0.0", port=7860)
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
| 9 |
# Set the PATH for user's local installations
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 11 |
|
| 12 |
+
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
+
|
| 16 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
+
|
| 20 |
COPY --chown=user . /app
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
CMD ["python", "app.py"]
|
| 24 |
+
|
| 25 |
+
|