22f1000545 commited on
Commit
22b8dd2
·
1 Parent(s): fc98586

Deploy FastAPI iris classifier

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Copy files into container
4
+ COPY . /code
5
+
6
+ # Set working directory
7
+ WORKDIR /code
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ # Run FastAPI on HF's required port 7860
13
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]