Spaces:
Runtime error
Runtime error
Commit ·
722d398
1
Parent(s): 31e92d3
newone
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -23,18 +23,15 @@ ENV SURPRISE_DATA_FOLDER=/app/.surprise_data
|
|
| 23 |
|
| 24 |
# Update pip and install specific versions of numpy and other necessary packages
|
| 25 |
RUN pip install --upgrade pip && \
|
| 26 |
-
pip install --no-cache-dir "numpy<2" && \
|
| 27 |
pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# Ensure /tmp is writable, as the app will create the label encoder file there
|
| 30 |
# Ensure the cache directory is writable
|
| 31 |
-
# Ensure the cache directory is writable
|
| 32 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache /tmp
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
# Expose port 5016 for the Flask app
|
| 37 |
EXPOSE 5016
|
| 38 |
|
| 39 |
# Run app.py when the container launches
|
| 40 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
|
|
|
|
| 23 |
|
| 24 |
# Update pip and install specific versions of numpy and other necessary packages
|
| 25 |
RUN pip install --upgrade pip && \
|
| 26 |
+
pip install --no-cache-dir "numpy<2.0" && \
|
| 27 |
pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# Ensure /tmp is writable, as the app will create the label encoder file there
|
| 30 |
# Ensure the cache directory is writable
|
|
|
|
| 31 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache /tmp
|
|
|
|
|
|
|
| 32 |
|
| 33 |
# Expose port 5016 for the Flask app
|
| 34 |
EXPOSE 5016
|
| 35 |
|
| 36 |
# Run app.py when the container launches
|
| 37 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|