From 2e3c69b5505fabb7f7b07d0cc19e1e5e601c9155 Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 25 Oct 2024 00:34:53 +0200 Subject: [PATCH] feat(docker): added multi stage dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f82dda8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:20 AS builder + +COPY . /brunsviga +WORKDIR /brunsviga + +RUN npm ci +RUN npm run build + +FROM nginx:mainline-alpine3.20-slim as runtime + +COPY --from=builder /brunsviga/dist /usr/share/nginx/html/