Spaces:
Runtime error
Runtime error
Commit
·
723d8a7
1
Parent(s):
575d525
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -16,16 +16,15 @@ FROM python:3.10.9
|
|
16 |
|
17 |
WORKDIR /code
|
18 |
|
19 |
-
RUN mkdir /code/cache
|
20 |
|
21 |
COPY ./requirements.txt /code/requirements.txt
|
22 |
|
23 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
24 |
|
25 |
-
ENV FASTF1_CACHE_DIR="/
|
26 |
|
27 |
COPY . .
|
28 |
|
29 |
-
CMD ["
|
30 |
-
|
31 |
|
|
|
16 |
|
17 |
WORKDIR /code
|
18 |
|
19 |
+
RUN mkdir /code/cache && chmod a+w /code/cache
|
20 |
|
21 |
COPY ./requirements.txt /code/requirements.txt
|
22 |
|
23 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
24 |
|
25 |
+
ENV FASTF1_CACHE_DIR="/code/cache"
|
26 |
|
27 |
COPY . .
|
28 |
|
29 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
30 |
|