Skip to content

Commit 555a2d0

Browse files
committed
Run as root in Docker container
1 parent 025a6ff commit 555a2d0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ WORKDIR /metacpan-api
99
# because the modules themselves have been tested, and the metacpan use of the
1010
# modules is tested by the test suite. Removing the tests, reduces the overall
1111
# size of the images.
12-
RUN useradd -m metacpan-api -g users \
13-
&& mkdir /CPAN \
12+
RUN mkdir /CPAN \
1413
&& cpm install --global --without-test \
1514
&& rm -fr /root/.cpanm /root/.perl-cpm /var/cache/apt/lists/* /tmp/*
1615

17-
RUN chown -R metacpan-api:users /metacpan-api /CPAN
18-
1916
VOLUME /CPAN
2017

21-
USER metacpan-api:users
22-
2318
EXPOSE 5000
2419

2520
CMD /wait-for-it.sh ${PGDB} -- ${API_SERVER} ./bin/api.pl

0 commit comments

Comments
 (0)