leonsimon23 commited on
Commit
3e58f7b
·
verified ·
1 Parent(s): 1a462e6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -3
Dockerfile CHANGED
@@ -2,9 +2,25 @@ 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
 
2
 
3
  WORKDIR /app
4
 
5
+ # Debug: List current directory contents
6
+ RUN pwd && ls -la
7
+
8
+ # Copy files individually
9
+ COPY app.py /app/
10
+ COPY difydev.py /app/
11
+ COPY requirements.txt /app/
12
+
13
+ # Create templates directory
14
+ RUN mkdir -p /app/templates
15
+
16
+ # Copy template files individually
17
+ COPY templates/dashboard.html /app/templates/
18
+ COPY templates/difydev.html /app/templates/
19
+ COPY templates/login.html /app/templates/
20
+
21
+ # Debug: List files after copy
22
+ RUN echo "Files in /app:" && ls -la /app && \
23
+ echo "Files in /app/templates:" && ls -la /app/templates
24
 
25
  # Install dependencies
26
  RUN pip install --no-cache-dir -r requirements.txt