From d54ca0bf20fa4106382755355d210152b1ca2c46 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 8 Sep 2022 19:26:38 +0200 Subject: [PATCH] Added docker build image --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8f6402c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:latest-alpine + +RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm + +WORKDIR /app + +# pnpm fetch richiede solo il file lock +COPY pnpm-lock.yaml ./ + +RUN pnpm fetch --prod + +ADD . ./ +RUN pnpm install -r --offline --prod + +CMD pnpm run build