Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -3
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,6 +8,8 @@ RUN pip install diffusers transformers
|
|
8 |
|
9 |
RUN pip install fastapi uvicorn
|
10 |
|
11 |
-
COPY
|
12 |
|
13 |
-
|
|
|
|
|
|
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"]
|