Skip to content

Commit 6bf462d

Browse files
committed
clear cache to reduce docker image size
1 parent 9d233d6 commit 6bf462d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ WORKDIR /app
88
RUN apk add curl \
99
&& python3 -m venv $VIRTUAL_ENV \
1010
&& pip install --upgrade pip \
11-
&& pip3 install poetry
11+
&& pip install poetry --no-cache-dir
1212

1313
COPY . /app/
1414

15-
RUN poetry install --no-root --only main
15+
RUN poetry install --no-root --only main \
16+
&& poetry cache clear --all .
1617

1718

1819
FROM sentinela AS sentinela_dev
1920

20-
RUN poetry install --no-root
21+
RUN poetry install --no-root \
22+
&& poetry cache clear --all .

0 commit comments

Comments
 (0)