r23 commited on
Commit
ff554ed
1 Parent(s): 9eeae86

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.8-slim
2
 
3
- WORKDIR /code COPY app.py /code
4
 
5
  RUN pip install --upgrade pip
6
 
@@ -8,6 +8,8 @@ RUN pip install diffusers transformers
8
 
9
  RUN pip install fastapi uvicorn
10
 
11
- COPY app.py requirements.txt /code
12
 
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
 
 
1
  FROM python:3.8-slim
2
 
3
+ WORKDIR /code
4
 
5
  RUN pip install --upgrade pip
6
 
 
8
 
9
  RUN pip install fastapi uvicorn
10
 
11
+ COPY requirements.txt /code RUN pip install -r requirements.txt
12
 
13
+ COPY app.py /code
14
+
15
+ CMD ["uvicorn", "app:app", "-host", "0.0.0.0", "-port", "80"]