Spaces:
Sleeping
Sleeping
updated the docker file
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -22,11 +22,14 @@ COPY . .
|
|
22 |
# Set the working directory to /
|
23 |
WORKDIR /
|
24 |
|
|
|
25 |
RUN mkdir -p /uploads
|
26 |
RUN chmod 777 /uploads
|
27 |
|
|
|
|
|
28 |
# Install requirements.txt
|
29 |
-
RUN pip install --
|
30 |
|
31 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
32 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
22 |
# Set the working directory to /
|
23 |
WORKDIR /
|
24 |
|
25 |
+
|
26 |
RUN mkdir -p /uploads
|
27 |
RUN chmod 777 /uploads
|
28 |
|
29 |
+
NUMBA_CACHE_DIR /temp
|
30 |
+
|
31 |
# Install requirements.txt
|
32 |
+
RUN pip install --upgrade -r /requirements.txt
|
33 |
|
34 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
35 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|