Ekimart078 commited on
Commit
6f57442
·
1 Parent(s): 53d2b99

Update Dockerfile to combine pip setup with package installation for optimized layering and efficiency.

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -13,13 +13,11 @@ RUN useradd -m -u 1000 appuser
13
 
14
  WORKDIR /app
15
 
16
- COPY requirements.txt .
17
 
18
- RUN pip install --no-cache-dir --upgrade pip && \
19
  pip install --no-cache-dir -r requirements.txt
20
 
21
- COPY . .
22
-
23
  USER appuser
24
 
25
  EXPOSE ${PORT}
 
13
 
14
  WORKDIR /app
15
 
16
+ COPY . .
17
 
18
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
19
  pip install --no-cache-dir -r requirements.txt
20
 
 
 
21
  USER appuser
22
 
23
  EXPOSE ${PORT}