Skip to content

Commit 1c00ef8

Browse files
committed
Purge in the right step
1 parent 1bd2b5d commit 1c00ef8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/lnt.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ FROM python:3.10-alpine AS llvm-lnt
2929
# Install dependencies
3030
RUN apk update \
3131
&& apk add --no-cache --virtual .build-deps git g++ postgresql-dev yaml-dev \
32-
&& apk add --no-cache libpq
32+
&& apk add --no-cache libpq \
33+
&& apk --purge del .build-deps
3334

3435
# Install LNT itself, without leaving behind any sources inside the image.
3536
RUN --mount=type=bind,source=.,target=./lnt-source \
3637
cp -R lnt-source /tmp/lnt-src && \
3738
cd /tmp/lnt-src && \
38-
pip3 install -r requirements.server.txt && apk --purge del .build-deps && \
39+
pip3 install -r requirements.server.txt && \
3940
rm -rf /tmp/lnt-src
4041

4142

0 commit comments

Comments
 (0)