Inder-26 commited on
Commit
eaddcc9
·
1 Parent(s): e982f07

Refactor Dockerfile to streamline AWS CLI installation and improve layer caching

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,8 +1,11 @@
1
  FROM python:3.11-slim
 
2
  WORKDIR /app
3
- COPY . /app
4
 
5
- RUN apt update -y && apt install awscli -y
 
 
 
 
6
 
7
- RUN apt-get update && pip install -r requirements.txt
8
- CMD ["python3", "app.py"]
 
1
  FROM python:3.11-slim
2
+
3
  WORKDIR /app
 
4
 
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt awscli
8
+
9
+ COPY . .
10
 
11
+ CMD ["python", "app.py"]