leonsimon23 commited on
Commit
1a462e6
·
verified ·
1 Parent(s): 0ff2bfc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 Python packages from builder
14
- COPY --from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
 
15
 
16
- # Copy application files from builder stage
17
- COPY --from=builder /build/app.py .
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 && \