Ausbel commited on
Commit
1323d69
1 Parent(s): 46dd3bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -1,18 +1,17 @@
1
- WORKDIR /code
2
 
3
- COPY ./requirements.txt /code/requirements.txt
4
 
5
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
6
 
7
- # Copy the model to the container
8
  COPY XGB.joblib .
9
 
10
- # Copy the FastAPI app code to the container
11
- COPY main.py .
12
 
13
- # Expose the port the FastAPI app will run on
14
  EXPOSE 7860
15
 
16
- # The CMD instruction specifies the command to run when the container starts
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
18
 
 
1
+ WORKDIR /code
2
 
3
+ COPY ./requirements.txt /code/requirements.txt
4
 
5
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
6
 
7
+ # Copy the model to the container
8
  COPY XGB.joblib .
9
 
10
+ # Copy the FastAPI app code to the container
11
+ COPY main.py . # Expose the port the FastAPI app will run on
12
 
 
13
  EXPOSE 7860
14
 
15
+ # The CMD instruction specifies the command to run when the container starts
16
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
17