etherpad: move chown

This commit is contained in:
Starbeamrainbowlabs 2020-09-27 13:20:39 +01:00
parent b0d1e74427
commit ec8ccd6439
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -18,10 +18,10 @@ RUN cd /srv/etherpad \
FROM ${REPO_LOCATION}minideb-node FROM ${REPO_LOCATION}minideb-node
RUN mkdir -p /srv /.npm \
&& chown -R 70:70 /.npm /srv/etherpad
COPY --from=builder /srv/etherpad /srv/etherpad COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/ COPY settings.json /srv/etherpad/
RUN mkdir -p /.npm && chown -R 70:70 /.npm /srv/etherpad
USER 70:70 USER 70:70
ENV NODE_ENV production ENV NODE_ENV production