summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-22 21:47:48 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-22 21:47:48 +0200
commit65e5563ac03099719bb5cc5a3b8df38a909c5890 (patch)
treefc0d83378aa9e9230e3f3b1a7b9e51949403f458 /Dockerfile
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..4afaa87
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+FROM docker.io/node:lts-alpine
+
+MAINTAINER Hende, Botond <nettingman@gmail.com>
+LABEL Description="Etherpad-lite server"
+
+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 sqlite3
+RUN bin/installDeps.sh
+RUN npm audit fix || true
+RUN chown -R node:node /opt/etherpad
+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/src/bin/run.sh"]
+