Skip to content

Commit 428e827

Browse files
committed
Try using a mount instead of copying sources
1 parent bf32c5c commit 428e827

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker/lnt.dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ RUN apk update \
3232
&& apk add --no-cache libpq
3333

3434
# Install LNT itself
35-
COPY . /var/tmp/lnt
36-
WORKDIR /var/tmp/lnt
37-
RUN pip3 install -r requirements.server.txt && apk --purge del .build-deps
35+
RUN --mount=type=bind,source=.,target=./lnt-source \
36+
cd lnt-source && \
37+
pip3 install -r requirements.server.txt && \
38+
apk --purge del .build-deps
3839

3940

4041
FROM llvm-lnt AS llvm-lnt-prod

0 commit comments

Comments
 (0)