banao-tech commited on
Commit
85b9952
·
verified ·
1 Parent(s): 1d8ca85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -33,11 +33,10 @@ RUN mkdir -p /app/{weights,imgs} && \
33
  chmod -R 777 /app
34
 
35
  # Application code
36
- COPY main.py utils.py download_models.py ./ # Copy your app code
37
- COPY util ./util # Copy the util folder
38
- COPY ./weights /app/weights # Copy weights folder without the comment
39
-
40
- # Download models if needed
41
  RUN python3 download_models.py
42
 
43
  # Set up user
@@ -45,5 +44,4 @@ RUN useradd -m -u 1000 user
45
  USER user
46
  ENV PATH="/home/user/.local/bin:$PATH"
47
 
48
- # Set the entry point to run the app
49
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
33
  chmod -R 777 /app
34
 
35
  # Application code
36
+ COPY main.py utils.py download_models.py ./
37
+ COPY util ./util
38
+ COPY weights ./weights
39
+ # Download models
 
40
  RUN python3 download_models.py
41
 
42
  # Set up user
 
44
  USER user
45
  ENV PATH="/home/user/.local/bin:$PATH"
46
 
47
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]