AlgoX commited on
Commit
851201c
·
1 Parent(s): c1f5829
Files changed (2) hide show
  1. Dockerfile +11 -0
  2. deployment/Dockerfile +1 -1
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
deployment/Dockerfile CHANGED
@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
  COPY . .
10
 
11
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
8
 
9
  COPY . .
10
 
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]