ajayvikram commited on
Commit
6484c05
·
verified ·
1 Parent(s): 0dc759a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -1,3 +1,11 @@
1
  FROM huggingface/autotrain-advanced:latest
 
 
 
 
 
 
 
 
2
  RUN pip install -r requirements.txt
3
  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
+ # Copy the requirements.txt file into the Docker image
4
+ COPY requirements.txt /app/requirements.txt
5
+
6
+ # Set the working directory
7
+ WORKDIR /app
8
+
9
+ # Install the Python packages from requirements.txt
10
  RUN pip install -r requirements.txt
11
  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