Skip to content

Commit

Permalink
docker yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kalidiagne committed Oct 30, 2024
1 parent 9bb39ea commit f9c0e54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,4 +18,4 @@ WORKDIR /home/node
COPY --chown=node:node --from=builder /builder/ ./

EXPOSE ${PORT}
CMD ["pnpm", "start"]
CMD ["yarn", "start"]

0 comments on commit f9c0e54

Please sign in to comment.