etherpad: chown *after* we install packages

This commit is contained in:
Starbeamrainbowlabs 2021-03-18 23:57:55 +00:00
parent 0f42f37ee1
commit 898ff9489e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -22,13 +22,14 @@ COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/ COPY settings.json /srv/etherpad/
ENV PYTHON /usr/bin/python3 ENV PYTHON /usr/bin/python3
RUN mkdir -p /.npm && chown -R 70:70 /.npm /srv/etherpad RUN mkdir -p /.npm
RUN cd /srv/etherpad \ RUN cd /srv/etherpad \
&& install_packages python3 make gcc g++ libc-dev libc++-dev \ && install_packages python3 make gcc g++ libc-dev libc++-dev \
&& ln -s /usr/bin/python3 /usr/bin/python \ && ln -s /usr/bin/python3 /usr/bin/python \
&& src/bin/installDeps.sh \ && src/bin/installDeps.sh \
&& npm install sqlite3 \ && 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 # The rm -rf there is to save some space in the resulting container