etherpad: fix npm cache location, as etherpad does an npm update on startup

This commit is contained in:
Starbeamrainbowlabs 2020-09-27 00:15:08 +01:00
parent cedba508f7
commit 841a7af89b
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 2 deletions

View File

@ -19,11 +19,13 @@ RUN cd /srv/etherpad \
FROM ${REPO_LOCATION}minideb-node
RUN mkdir -p /srv
RUN mkdir -p /srv /.npm && chown -R 70:70 /.npm
COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/
USER 70:70
ENV NODE_ENV production
WORKDIR /srv/etherpad
ENTRYPOINT [ "/bin/sh" "/srv/etherpad/bin/run.sh" ]
ENTRYPOINT [ "/bin/sh" ]
CMD /srv/etherpad/bin/run.sh