docker-images/images/etherpad/Dockerfile

27 lines
693 B
Docker

ARG REPO_LOCATION
# ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb-node AS builder
RUN install_packages git ca-certificates
RUN mkdir -p /srv && git clone --branch master https://github.com/ether/etherpad-lite.git /srv/etherpad
RUN cd /srv/etherpad \
&& npm install \
&& npm install sqlite3 \
&& rm /srv/etherpad/settings.json \
&& chown -R 70:70 /srv/etherpad
###############################################################################
FROM ${REPO_LOCATION}minideb-node
RUN mkdir /srv
COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/
USER 70:70
ENV NODE_ENV production
WORKDIR /srv/etherpad
ENTRYPOINT [ "/bin/sh" "/srv/etherpad/bin/run.sh" ]