Dvirmor100 commited on
Commit
10a54af
·
1 Parent(s): 23a4ba2

ci(Dockerfile): Update Dockerfile to copy only src directory to /app

Browse files

Updated the Dockerfile to restrict the COPY command to the src directory instead of the entire project. This reduces unnecessary files in the Docker image, improving build efficiency and runtime performance.

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -12,5 +12,5 @@ WORKDIR /app
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- COPY --chown=user . /app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
+ COPY --chown=user src /app
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]