jimjonesbabyfreshout commited on
Commit
c1fa6d1
·
verified ·
1 Parent(s): ca14dc2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -1
Dockerfile CHANGED
@@ -1,2 +1,16 @@
1
  FROM huggingface/autotrain-advanced:latest
2
- CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && uvicorn autotrain.app:app --host 0.0.0.0 --port 7860 --reload --workers 4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM huggingface/autotrain-advanced:latest
2
+
3
+ # Uninstall the existing autotrain-advanced package
4
+ CMD pip uninstall -y autotrain-advanced
5
+
6
+ # Install the latest version of autotrain-advanced
7
+ CMD pip install -U autotrain-advanced
8
+
9
+ # Start the AutoTrain app
10
+ CMD uvicorn autotrain.app:app --host 0.0.0.0 --port 7860 --reload --workers 4
11
+
12
+ # Additional optimizations:
13
+ # - Use a multi-stage build to reduce the size of the final image.
14
+ # - Use a custom base image that is tailored to your specific needs.
15
+ # - Use a caching mechanism to speed up the build process.
16
+ # - Use a continuous integration/continuous deployment (CI/CD) pipeline to automate the build and deployment process.