Skip to content

Commit c35a09a

Browse files
committed
Remove carton from Dockerfile
1 parent ce5f6aa commit c35a09a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM metacpan/metacpan-base:latest
22

3-
ENV PERL_MM_USE_DEFAULT=1 PERL_CARTON_PATH=/carton
3+
ENV PERL_MM_USE_DEFAULT=1
44

55
COPY cpanfile cpanfile.snapshot /metacpan-api/
66
WORKDIR /metacpan-api
@@ -10,18 +10,16 @@ WORKDIR /metacpan-api
1010
# modules is tested by the test suite. Removing the tests, reduces the overall
1111
# size of the images.
1212
RUN useradd -m metacpan-api -g users \
13-
&& mkdir /carton /CPAN \
14-
&& cpm install --without-test -L /carton \
13+
&& mkdir /CPAN \
14+
&& cpm install --global --without-test \
1515
&& rm -fr /root/.cpanm /root/.perl-cpm /var/cache/apt/lists/* /tmp/*
1616

17-
RUN chown -R metacpan-api:users /metacpan-api /carton /CPAN
18-
19-
VOLUME /carton
17+
RUN chown -R metacpan-api:users /metacpan-api /CPAN
2018

2119
VOLUME /CPAN
2220

2321
USER metacpan-api:users
2422

2523
EXPOSE 5000
2624

27-
CMD /wait-for-it.sh ${PGDB} -- carton exec ${API_SERVER} ./bin/api.pl
25+
CMD /wait-for-it.sh ${PGDB} -- ${API_SERVER} ./bin/api.pl

0 commit comments

Comments
 (0)