Upload Dockerfile.txt

#1
by QuophyDzifa - opened
Files changed (1) hide show
  1. Dockerfile.txt +13 -0
Dockerfile.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY ./requirements.txt /app
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
8
+
9
+ EXPOSE 7860
10
+
11
+ COPY . .
12
+
13
+ CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]