Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -4,13 +4,17 @@ FROM python:3.10
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy files
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install requirements
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
EXPOSE 8000
|
| 15 |
|
| 16 |
# Run FastAPI with uvicorn
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy project files
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install requirements
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Hugging Face Spaces only allows writing to /data
|
| 14 |
+
# Set environment variable so storage.py can use it
|
| 15 |
+
ENV STORAGE_PATH=/data/media
|
| 16 |
+
|
| 17 |
+
# Expose port (Hugging Face will route traffic to it)
|
| 18 |
EXPOSE 8000
|
| 19 |
|
| 20 |
# Run FastAPI with uvicorn
|