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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.8-slim
2
 
3
- WORKDIR /code
4
 
5
  RUN pip install --upgrade pip
6
 
@@ -8,4 +8,6 @@ RUN pip install diffusers transformers
8
 
9
  RUN pip install fastapi uvicorn
10
 
 
 
11
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
1
  FROM python:3.8-slim
2
 
3
+ WORKDIR /code COPY app.py /code
4
 
5
  RUN pip install --upgrade pip
6
 
 
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"]