Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -15
Dockerfile
CHANGED
|
@@ -1,23 +1,13 @@
|
|
| 1 |
-
FROM python:3.9-slim AS builder
|
| 2 |
-
|
| 3 |
-
WORKDIR /build
|
| 4 |
-
|
| 5 |
-
# Copy all necessary files to builder stage
|
| 6 |
-
COPY . .
|
| 7 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
-
|
| 9 |
FROM python:3.9-slim
|
| 10 |
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
-
# Copy
|
| 14 |
-
COPY
|
|
|
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
| 18 |
-
COPY --from=builder /build/difydev.py .
|
| 19 |
-
COPY --from=builder /build/requirements.txt .
|
| 20 |
-
COPY --from=builder /build/templates templates/
|
| 21 |
|
| 22 |
# Create necessary directories
|
| 23 |
RUN mkdir -p /app/instance/sessions && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Copy application files
|
| 6 |
+
COPY app.py difydev.py requirements.txt ./
|
| 7 |
+
COPY templates templates/
|
| 8 |
|
| 9 |
+
# Install dependencies
|
| 10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Create necessary directories
|
| 13 |
RUN mkdir -p /app/instance/sessions && \
|