Gregniuki commited on
Commit
c503f90
1 Parent(s): 5446ba7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -5,10 +5,10 @@
5
  FROM python:3.9
6
 
7
  # Set the working directory to /code
8
- WORKDIR /code
9
 
10
  # Copy the requirements file into the container at /code/
11
- COPY ./requirements.txt /code/requirements.txt
12
  # Copy the FastAPI application code into the container
13
  COPY ./app.py /app/app.py
14
  # Install the required Python packages from requirements.txt
@@ -31,4 +31,4 @@ WORKDIR $HOME/app
31
  COPY --chown=user . $HOME/app
32
 
33
  # Specify the command to run your application (modify as needed)
34
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
  FROM python:3.9
6
 
7
  # Set the working directory to /code
8
+ WORKDIR /app
9
 
10
  # Copy the requirements file into the container at /code/
11
+ COPY ./requirements.txt /app/requirements.txt
12
  # Copy the FastAPI application code into the container
13
  COPY ./app.py /app/app.py
14
  # Install the required Python packages from requirements.txt
 
31
  COPY --chown=user . $HOME/app
32
 
33
  # Specify the command to run your application (modify as needed)
34
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]