We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025a6ff commit 555a2d0Copy full SHA for 555a2d0
Dockerfile
@@ -9,17 +9,12 @@ WORKDIR /metacpan-api
9
# because the modules themselves have been tested, and the metacpan use of the
10
# modules is tested by the test suite. Removing the tests, reduces the overall
11
# size of the images.
12
-RUN useradd -m metacpan-api -g users \
13
- && mkdir /CPAN \
+RUN mkdir /CPAN \
14
&& cpm install --global --without-test \
15
&& rm -fr /root/.cpanm /root/.perl-cpm /var/cache/apt/lists/* /tmp/*
16
17
-RUN chown -R metacpan-api:users /metacpan-api /CPAN
18
-
19
VOLUME /CPAN
20
21
-USER metacpan-api:users
22
23
EXPOSE 5000
24
25
CMD /wait-for-it.sh ${PGDB} -- ${API_SERVER} ./bin/api.pl
0 commit comments