Spaces:
Runtime error
Runtime error
asolopovas
commited on
Commit
•
c7ae5ea
1
Parent(s):
ffdc627
save
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
@@ -2,18 +2,13 @@
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.9
|
5 |
-
USER www-data
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
-
|
10 |
-
RUN
|
11 |
-
RUN chown -R www-data:www-data /var/www > /dev/null 2>&1
|
12 |
-
|
13 |
-
RUN pip install --no-cache-dir --prefer-binary -U -r /code/requirements.txt
|
14 |
|
15 |
COPY . .
|
16 |
-
ENV MPLCONFIGDIR=/tmp/matplotlib
|
17 |
-
COPY ./requirements.txt /code/requirements.txt
|
18 |
|
|
|
19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.9
|
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
8 |
+
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
RUN pip install --no-cache-dir --prefer-binary -r /code/requirements.txt
|
|
|
|
|
|
|
10 |
|
11 |
COPY . .
|
|
|
|
|
12 |
|
13 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
14 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|