Ausbel commited on
Commit
b1dbda1
1 Parent(s): 99ad5a4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
19
+
20
+ has context menu