docker-images/images/etherpad/Dockerfile

31 lines
784 B
Docker
Raw Normal View History

2020-09-26 13:56:36 +00:00
ARG REPO_LOCATION
# ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb-node AS builder
2020-09-26 14:25:52 +00:00
RUN install_packages git ca-certificates python3 make gcc
2020-09-26 13:56:36 +00:00
2020-09-26 14:12:46 +00:00
RUN mkdir -p /srv && git clone --branch master https://github.com/ether/etherpad-lite.git /srv/etherpad
2020-09-26 13:56:36 +00:00
ENV PYTHON /usr/bin/python3
2020-09-26 14:12:46 +00:00
RUN cd /srv/etherpad \
2020-09-26 15:09:47 +00:00
&& ln -s /usr/bin/python3 /usr/bin/python \
2020-09-26 14:12:46 +00:00
&& npm install \
&& npm install sqlite3 \
&& rm /srv/etherpad/settings.json \
&& chown -R 70:70 /srv/etherpad
2020-09-26 13:56:36 +00:00
###############################################################################
FROM ${REPO_LOCATION}minideb-node
RUN mkdir /srv
COPY --from=builder /srv/etherpad /srv/etherpad
2020-09-26 14:12:46 +00:00
COPY settings.json /srv/etherpad/
2020-09-26 13:59:25 +00:00
USER 70:70
2020-09-26 13:56:36 +00:00
2020-09-26 14:12:46 +00:00
ENV NODE_ENV production
2020-09-26 13:56:36 +00:00
WORKDIR /srv/etherpad
ENTRYPOINT [ "/bin/sh" "/srv/etherpad/bin/run.sh" ]