soxogvv commited on
Commit
653ac84
·
verified ·
1 Parent(s): decdcad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -3
Dockerfile CHANGED
@@ -1,4 +1,17 @@
1
  FROM python:3.10-slim
2
- RUN apt update -y && apt install wget -y
3
- RUN pip install -r requirements.txt
4
- CMD python app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system deps
6
+ RUN apt update && apt install -y wget && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Copy requirements first (Docker cache optimization)
9
+ COPY requirements.txt .
10
+
11
+ # Install Python deps
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy project files
15
+ COPY . .
16
+
17
+ CMD ["python", "app.py"]