etherpad: chown *after* we install packages
This commit is contained in:
parent
0f42f37ee1
commit
898ff9489e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue