From 898ff9489e7340a1fbde8983d8d85931d37f0493 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 18 Mar 2021 23:57:55 +0000 Subject: [PATCH] etherpad: chown *after* we install packages --- images/etherpad/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/etherpad/Dockerfile b/images/etherpad/Dockerfile index 65f07e5..7543f3e 100644 --- a/images/etherpad/Dockerfile +++ b/images/etherpad/Dockerfile @@ -22,13 +22,14 @@ COPY --from=builder /srv/etherpad /srv/etherpad COPY settings.json /srv/etherpad/ ENV PYTHON /usr/bin/python3 -RUN mkdir -p /.npm && chown -R 70:70 /.npm /srv/etherpad +RUN mkdir -p /.npm RUN cd /srv/etherpad \ && install_packages python3 make gcc g++ libc-dev libc++-dev \ && ln -s /usr/bin/python3 /usr/bin/python \ && src/bin/installDeps.sh \ && npm install sqlite3 \ - && rm -rf /srv/etherpad/.git /.npm/_cacache + && rm -rf /srv/etherpad/.git /.npm/_cacache \ + && chown -R 70:70 /.npm /srv/etherpad # The rm -rf there is to save some space in the resulting container