summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-12-31 17:43:30 +0100
committertomsmeding <tom.smeding@gmail.com>2019-12-31 17:43:30 +0100
commitb41a370dfc8e602eca6c0b37a6eac22e8de8e1bb (patch)
treedd80af139e15a9db40ff7a769d170436bdd065d9
parent7c8541e4363dc82341bb9d7bd4afdd8b99e0edf4 (diff)
Docker-ready
-rw-r--r--.dockerignore1
-rw-r--r--Dockerfile9
2 files changed, 10 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..802b0c0
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1 @@
+persist
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2b38630
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM alpine:3.11
+
+RUN apk add --no-cache nodejs npm
+
+WORKDIR /webserver
+COPY . .
+RUN npm install
+
+ENTRYPOINT ["./webserver.js"]