summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-08-22 21:26:34 +0200
committerBotond Hende <nettingman@gmail.com>2024-08-22 21:26:34 +0200
commit7c5afe8a171a6b1150e7c690fcff50d072201a24 (patch)
tree1ea7ecc0d22d2fd1bde1699e157d4849dc52b8c5 /Dockerfile
initial commitHEADmaster
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..3e7303b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM docker.io/node:lts-alpine
+
+MAINTAINER Hende, Botond <nettingman@gmail.com>
+LABEL Description="Ethercalc server"
+
+ENV NODE_ENV=production
+ENV OPENSHIFT_DATA_DIR=/srv/ethercalc
+
+RUN npm install --global ethercalc
+RUN mkdir /srv/ethercalc && chown -R node:node /srv/ethercalc
+
+WORKDIR /srv/ethercalc
+USER node
+EXPOSE 8000/tcp
+
+CMD ["/usr/local/bin/ethercalc"]