Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
# Disable Python buffering for easier container logging
|
|
@@ -37,8 +38,11 @@ RUN mkdir -p /app/static /app/temp && chmod -R 777 /app/static /app/temp
|
|
| 37 |
# Copy the rest of your application code into the container
|
| 38 |
COPY . /app
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
# Expose the port your app runs on
|
| 41 |
EXPOSE 8500
|
| 42 |
|
| 43 |
# Run the FastAPI application using uvicorn
|
| 44 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8500"]
|
|
|
|
| 1 |
+
# Use an official Python runtime as a parent image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
# Disable Python buffering for easier container logging
|
|
|
|
| 38 |
# Copy the rest of your application code into the container
|
| 39 |
COPY . /app
|
| 40 |
|
| 41 |
+
# **New line:** Set permissions for the entire /app directory (including fine_tuned_legal_qa)
|
| 42 |
+
RUN chmod -R 777 /app
|
| 43 |
+
|
| 44 |
# Expose the port your app runs on
|
| 45 |
EXPOSE 8500
|
| 46 |
|
| 47 |
# Run the FastAPI application using uvicorn
|
| 48 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8500"]
|