Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
|
|
| 1 |
FROM huggingface/autotrain-advanced:latest
|
| 2 |
|
| 3 |
-
# Upgrade
|
| 4 |
-
RUN pip
|
| 5 |
|
| 6 |
-
#
|
|
|
|
|
|
|
|
|
|
| 7 |
EXPOSE 7860
|
| 8 |
|
| 9 |
-
#
|
| 10 |
CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|
|
|
|
| 1 |
+
# Use Hugging Face autotrain base image
|
| 2 |
FROM huggingface/autotrain-advanced:latest
|
| 3 |
|
| 4 |
+
# Upgrade pip just in case
|
| 5 |
+
RUN pip install --upgrade pip
|
| 6 |
|
| 7 |
+
# Upgrade autotrain-advanced safely (without uninstalling)
|
| 8 |
+
RUN pip install --upgrade autotrain-advanced
|
| 9 |
+
|
| 10 |
+
# Expose the port for the app
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
# Run the autotrain app
|
| 14 |
CMD ["autotrain", "app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|