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"]