From f9c0e54748c1c3a37209c6301eb03a297cf3f7fb Mon Sep 17 00:00:00 2001 From: Kalidou Diagne Date: Wed, 30 Oct 2024 18:52:29 +0100 Subject: [PATCH] docker yarn --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3494970d..c907e39d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,13 @@ RUN apk add --no-cache git curl WORKDIR /builder COPY . . -RUN npm i -g pnpm -RUN pnpm install -RUN pnpm build +RUN npm i -g yarn +RUN yarn install +RUN yarn build # Create image by copying build artifacts FROM node:18-alpine3.18 as runner -RUN npm i -g pnpm +RUN npm i -g yarn USER node ARG PORT=3000 @@ -18,4 +18,4 @@ WORKDIR /home/node COPY --chown=node:node --from=builder /builder/ ./ EXPOSE ${PORT} -CMD ["pnpm", "start"] +CMD ["yarn", "start"]