Spaces:
Runtime error
Runtime error
Inder-26 commited on
Commit ·
eaddcc9
1
Parent(s): e982f07
Refactor Dockerfile to streamline AWS CLI installation and improve layer caching
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
FROM python:3.11-slim
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
-
COPY . /app
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
|
| 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"]
|
|
|