Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
|
|
| 1 |
FROM huggingface/autotrain-advanced:latest
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official AutoTrain Advanced image
|
| 2 |
FROM huggingface/autotrain-advanced:latest
|
| 3 |
+
|
| 4 |
+
# Update autotrain-advanced to the latest version
|
| 5 |
+
RUN pip uninstall -y autotrain-advanced && \
|
| 6 |
+
pip install -U autotrain-advanced
|
| 7 |
+
|
| 8 |
+
# Expose the port for the AutoTrain app
|
| 9 |
+
EXPOSE 7860
|
| 10 |
+
|
| 11 |
+
# Run the AutoTrain app
|
| 12 |
+
CMD autotrain app --host 0.0.0.0 --port 7860 --workers 1
|