SimaFarazi commited on
Commit
5a1a8c1
·
1 Parent(s): 9260415

Adapt Docker file to run app_hello_world

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -9,11 +9,11 @@ ENV PATH="/home/user/.local/bin:$PATH"
9
  WORKDIR /app
10
  # Copy the requirements.txt file from the host to the container
11
  # The --chown=user ensures the copied file is owned by our 'user'
12
- COPY --chown=user ./requirements.txt requirements.txt
13
  # Install the Python dependencies listed in 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_hello_world.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
9
  WORKDIR /app
10
  # Copy the requirements.txt file from the host to the container
11
  # The --chown=user ensures the copied file is owned by our 'user'
12
+ COPY --chown=user ./app_hello_world/requirements.txt requirements.txt
13
  # Install the Python dependencies listed in 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_hello_world/* /app
18
  # Specify the command to run when the container starts
19
  CMD ["uvicorn", "app_hello_world.main:app", "--host", "0.0.0.0", "--port", "7860"]