Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -17,5 +17,8 @@ COPY . .
|
|
17 |
# Expose the port FastAPI will run on
|
18 |
EXPOSE 7860
|
19 |
|
|
|
|
|
|
|
20 |
# Run FastAPI app via uvicorn
|
21 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
17 |
# Expose the port FastAPI will run on
|
18 |
EXPOSE 7860
|
19 |
|
20 |
+
# Create cache folder with write permissions
|
21 |
+
RUN mkdir -p /app/cache
|
22 |
+
|
23 |
# Run FastAPI app via uvicorn
|
24 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|