Skip to content

Commit 6d9c55b

Browse files
committed
building docker container should use the cpanfile.snapshot
1 parent 52ab2f4 commit 6d9c55b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ COPY cpanfile cpanfile.snapshot ./
4242
RUN \
4343
--mount=type=cache,target=/root/.perl-cpm,sharing=private \
4444
<<EOT /bin/bash -euo pipefail
45-
cpm install --show-build-log-on-failure
45+
cpm install --show-build-log-on-failure --resolver=snapshot
4646
EOT
4747

4848
RUN mkdir var && chown metacpan:users var
@@ -76,7 +76,7 @@ USER root
7676
RUN \
7777
--mount=type=cache,target=/root/.perl-cpm \
7878
<<EOT /bin/bash -euo pipefail
79-
cpm install --with-develop
79+
cpm install --show-build-log-on-failure --resolver=snapshot --with-develop
8080
chown -R metacpan:users ./
8181
EOT
8282

@@ -118,7 +118,7 @@ EOT
118118
RUN \
119119
--mount=type=cache,target=/root/.perl-cpm \
120120
<<EOT /bin/bash -euo pipefail
121-
cpm install --show-build-log-on-failure --with-test
121+
cpm install --show-build-log-on-failure --resolver=snapshot --with-test
122122
EOT
123123

124124
COPY .perlcriticrc .perltidyrc perlimports.toml tidyall.ini ./

0 commit comments

Comments
 (0)