From 841a7af89b84c1f27bcace5c4bef7a25597744f3 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 27 Sep 2020 00:15:08 +0100 Subject: [PATCH] etherpad: fix npm cache location, as etherpad does an npm update on startup --- images/etherpad/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/etherpad/Dockerfile b/images/etherpad/Dockerfile index 0a411df..64c97c8 100644 --- a/images/etherpad/Dockerfile +++ b/images/etherpad/Dockerfile @@ -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