summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..95714c3
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM node:slim AS builder
+WORKDIR /app
+EXPOSE 8080
+COPY package.json package-lock.json ./
+RUN npm ci
+
+FROM node:slim as runner
+WORKDIR /app
+COPY --from=builder /app/node_modules node_modules
+COPY . ./
+CMD ["npm", "start"]