Vela commited on
Commit
3fde957
·
1 Parent(s): c82e328

added docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ ENV PATH="/home/user/.local/bin:$PATH"
4
+
5
+ WORKDIR /code
6
+
7
+ COPY . /code
8
+
9
+ RUN pip install --upgrade pip
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860"]