File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
PGDB = db:5432
2
- API_SERVER = morbo -l http://*:5000 -w /metacpan-api --verbose
2
+ API_SERVER = morbo -l http://*:5000 -w . --verbose
Original file line number Diff line number Diff line change 1
1
FROM metacpan/metacpan-base:latest
2
2
3
- ENV PERL_MM_USE_DEFAULT=1 PERL_CARTON_PATH=/carton
3
+ ENV PERL_MM_USE_DEFAULT=1
4
4
5
5
COPY cpanfile cpanfile.snapshot /metacpan-api/
6
6
WORKDIR /metacpan-api
@@ -10,18 +10,16 @@ WORKDIR /metacpan-api
10
10
# modules is tested by the test suite. Removing the tests, reduces the overall
11
11
# size of the images.
12
12
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 \
15
15
&& rm -fr /root/.cpanm /root/.perl-cpm /var/cache/apt/lists/* /tmp/*
16
16
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
20
18
21
19
VOLUME /CPAN
22
20
23
21
USER metacpan-api:users
24
22
25
23
EXPOSE 5000
26
24
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
You can’t perform that action at this time.
0 commit comments