From 4ebfe769af2bda3618b91cb1de2393880f74077b Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 15 Nov 2023 19:39:35 +0100 Subject: [PATCH] Add Containerfile --- Containerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..4031bb1 --- /dev/null +++ b/Containerfile @@ -0,0 +1,19 @@ +FROM docker.io/node:20.5.0-alpine AS builder + +WORKDIR /app +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . + +RUN npm run build + + +FROM docker.io/node:20.5.0-alpine + +WORKDIR /app +COPY package.json package-lock.json . +RUN npm ci --omit dev +COPY --from=builder /app/build /app + +CMD ["node", "."]