Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
|
@@ -11,12 +11,15 @@ WORKDIR /app
|
|
| 11 |
# Create necessary directories first
|
| 12 |
RUN mkdir -p /app/templates /app/instance/sessions
|
| 13 |
|
| 14 |
-
# Copy
|
| 15 |
-
COPY . .
|
|
|
|
| 16 |
|
| 17 |
-
# Debug: Show directory structure
|
| 18 |
RUN echo "=== Directory Structure ===" && \
|
| 19 |
-
ls -la /app
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Install Python dependencies
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 11 |
# Create necessary directories first
|
| 12 |
RUN mkdir -p /app/templates /app/instance/sessions
|
| 13 |
|
| 14 |
+
# Copy essential files first
|
| 15 |
+
COPY requirements.txt app.py difydev.py init_script.py ./
|
| 16 |
+
COPY templates/ templates/
|
| 17 |
|
| 18 |
+
# Debug: Show directory structure and verify files
|
| 19 |
RUN echo "=== Directory Structure ===" && \
|
| 20 |
+
ls -la /app && \
|
| 21 |
+
echo "\n=== Verifying Essential Files ===" && \
|
| 22 |
+
ls -la /app/init_script.py /app/app.py /app/difydev.py
|
| 23 |
|
| 24 |
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|