ikoghoemmanuell commited on
Commit
f0d14df
1 Parent(s): ba17946

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -0
  2. requirements.txt +5 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as the base image
2
+ FROM python:3.9
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /code
6
+
7
+ # Copy requirements.txt file
8
+ COPY requirements.txt .
9
+
10
+ # Install the Python dependencies
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
+
13
+ # copy all the files in the app folder
14
+ COPY app/ .
15
+
16
+ EXPOSE 7860
17
+
18
+ # Start the FastAPI app with Uvicorn when the container starts
19
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ fastapi[all]
2
+ scikit-learn==1.2.1
3
+ numpy==1.21.5
4
+ pandas==1.3.1
5
+ pydantic