Kennymaur commited on
Commit
3aac0ee
·
1 Parent(s): 40ac4eb

Update dockerfile

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