Abhinit commited on
Commit
478aef6
·
verified ·
1 Parent(s): 7689e1d

change copy source of app code

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -14,8 +14,8 @@ COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
  # Copy the rest of the application code from the host to the container
16
  # Again, ensure the copied files are owned by 'user'
17
- COPY --chown=user . /app
18
  # Specify the command to run when the container starts
19
- CMD ["uvicorn", "app:app/main", "--host", "0.0.0.0", "--port", "7860"]
20
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
21
 
 
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
  # Copy the rest of the application code from the host to the container
16
  # Again, ensure the copied files are owned by 'user'
17
+ COPY --chown=user ./app /app
18
  # Specify the command to run when the container starts
19
+ CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
20
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
21