Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -21,12 +21,12 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 21 |
# Copy application files
|
| 22 |
COPY app.py .
|
| 23 |
|
| 24 |
-
#
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
|
| 29 |
-
COPY static/ ./static/ 2>/dev/null || true
|
| 30 |
|
| 31 |
# Create non-root user for security
|
| 32 |
RUN useradd --create-home --shell /bin/bash app && \
|
|
|
|
| 21 |
# Copy application files
|
| 22 |
COPY app.py .
|
| 23 |
|
| 24 |
+
# Copy templates and static directories (will be created by deployment script)
|
| 25 |
+
COPY templates ./templates/
|
| 26 |
+
COPY static ./static/
|
| 27 |
|
| 28 |
+
# Ensure all necessary directories exist and have proper permissions
|
| 29 |
+
RUN mkdir -p templates static/css static/js static/images logs
|
|
|
|
| 30 |
|
| 31 |
# Create non-root user for security
|
| 32 |
RUN useradd --create-home --shell /bin/bash app && \
|