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
1 changed files with 3 additions and 2 deletions

View File

@ -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