diff --git a/Dockerfile b/Dockerfile index ed93e20f..09513915 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,17 @@ -FROM node:18-alpine3.18 as builder +FROM node:20-alpine as builder RUN apk add --no-cache git curl WORKDIR /builder COPY package.json yarn.lock ./ +RUN corepack enable RUN yarn install COPY . . RUN yarn build # Create image by copying build artifacts -FROM node:18-alpine3.18 as runner +FROM node:20-alpine as runner USER node