Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -38,7 +38,7 @@ RUN mkdir -p /app/static /app/temp && chmod -R 777 /app/static /app/temp
|
|
38 |
# Copy the rest of your application code into the container
|
39 |
COPY . /app
|
40 |
|
41 |
-
# Set permissions for the entire /app directory (
|
42 |
RUN chmod -R 777 /app
|
43 |
|
44 |
# Set a default port; Hugging Face Spaces sets PORT automatically
|
@@ -47,3 +47,4 @@ EXPOSE 7860
|
|
47 |
|
48 |
# Run the FastAPI application using uvicorn on the dynamic port
|
49 |
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]
|
|
|
|
38 |
# Copy the rest of your application code into the container
|
39 |
COPY . /app
|
40 |
|
41 |
+
# Set permissions for the entire /app directory (for simplicity; adjust for security if needed)
|
42 |
RUN chmod -R 777 /app
|
43 |
|
44 |
# Set a default port; Hugging Face Spaces sets PORT automatically
|
|
|
47 |
|
48 |
# Run the FastAPI application using uvicorn on the dynamic port
|
49 |
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]
|
50 |
+
|