etherpad: make docer container more like official etherpad docker container
This commit is contained in:
parent
a75381e512
commit
b709b36864
1 changed files with 10 additions and 10 deletions
|
@ -14,23 +14,23 @@ RUN mkdir -p /srv \
|
|||
&& cd /srv/etherpad && git checkout "${COMMIT}" \
|
||||
&& git status
|
||||
|
||||
ENV PYTHON /usr/bin/python3
|
||||
|
||||
RUN cd /srv/etherpad \
|
||||
&& ln -s /usr/bin/python3 /usr/bin/python \
|
||||
&& npm install \
|
||||
&& npm install sqlite3 \
|
||||
&& rm -rf /srv/etherpad/.git
|
||||
|
||||
# The rm -rf there is to save some space in the resulting container
|
||||
|
||||
###############################################################################
|
||||
|
||||
FROM ${REPO_LOCATION}minideb-node
|
||||
|
||||
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 cd /srv/etherpad \
|
||||
&& ln -s /usr/bin/python3 /usr/bin/python \
|
||||
&& src/bin/installDeps.sh \
|
||||
&& npm install sqlite3 \
|
||||
&& rm -rf /srv/etherpad/.git /.npm/_cacache
|
||||
|
||||
# The rm -rf there is to save some space in the resulting container
|
||||
|
||||
|
||||
USER 70:70
|
||||
|
||||
|
|
Loading…
Reference in a new issue