summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-11-04 15:06:51 +0200
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-11-04 15:06:51 +0200
commit56be711ee89a86c7ba7c01a361163823b1056e16 (patch)
treedddad6d69e02e93d58b6a19474b61a5a7c4fc0b8 /Dockerfile
parent0064b61e4b93285d006786ca0d964ecaaf677c29 (diff)
Prepare for release
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..48631fb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM node:17 AS builder
+
+WORKDIR /app
+
+COPY package.json package-lock.json ./
+RUN npm ci --only-prod
+COPY . ./
+RUN npm run build
+
+FROM halverneus/static-file-server:latest AS server
+
+COPY --from=builder /app/dist /web