Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -11,10 +11,20 @@ COPY requirements.txt .
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
# Copy application files
|
| 14 |
-
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Expose port 7860 (Hugging Face Spaces standard)
|
| 17 |
EXPOSE 7860
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Run the FastAPI application
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
# Copy application files
|
| 14 |
+
COPY app.py .
|
| 15 |
+
COPY index.html .
|
| 16 |
+
COPY login.html .
|
| 17 |
+
COPY static/ ./static/
|
| 18 |
+
|
| 19 |
+
# Create directory for any additional files
|
| 20 |
+
RUN mkdir -p /app
|
| 21 |
|
| 22 |
# Expose port 7860 (Hugging Face Spaces standard)
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# Set environment variables
|
| 26 |
+
ENV PORT=7860
|
| 27 |
+
ENV PYTHONUNBUFFERED=1
|
| 28 |
+
|
| 29 |
# Run the FastAPI application
|
| 30 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|