summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: cbca801b0f4f30edf3fe7467405723900f2dea9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM docker.io/node:lts-alpine

MAINTAINER Hende, Botond <nettingman@gmail.com>
LABEL Description="Etherpad-lite server"

FROM docker.io/node:lts-alpine

ENV NODE_ENV=production

RUN apk add --no-cache --virtual container-buildtime \
	git python3 alpine-sdk

RUN git clone --depth 1 --branch master --separate-git-dir=/tmp/etherpad https://github.com/ether/etherpad-lite /opt/etherpad
WORKDIR /opt/etherpad/src
RUN npm install better-sqlite3
RUN ../bin/installDeps.sh
RUN npm audit fix || true
RUN chown -R node:node /opt/etherpad /home/node
RUN rm -rf /tmp/etherpad

COPY settings.json /opt/etherpad/settings.json

RUN apk del container-buildtime

USER node
EXPOSE 9001/tcp

CMD ["/opt/etherpad/bin/run.sh"]