etherpad: Move chown to real container, as it doesn't appear to carry over from the builder

This commit is contained in:
Starbeamrainbowlabs 2020-09-27 01:44:50 +01:00
parent 56f9008b34
commit b0d1e74427
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -12,14 +12,14 @@ ENV PYTHON /usr/bin/python3
RUN cd /srv/etherpad \ RUN cd /srv/etherpad \
&& ln -s /usr/bin/python3 /usr/bin/python \ && ln -s /usr/bin/python3 /usr/bin/python \
&& npm install \ && npm install \
&& npm install sqlite3 \ && npm install sqlite3
&& chown -R 70:70 /srv/etherpad
############################################################################### ###############################################################################
FROM ${REPO_LOCATION}minideb-node FROM ${REPO_LOCATION}minideb-node
RUN mkdir -p /srv /.npm && chown -R 70:70 /.npm RUN mkdir -p /srv /.npm \
&& chown -R 70:70 /.npm /srv/etherpad
COPY --from=builder /srv/etherpad /srv/etherpad COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/ COPY settings.json /srv/etherpad/
USER 70:70 USER 70:70