Skip to content

Commit

Permalink
Merge pull request #221 from privacy-scaling-explorations/docker-update
Browse files Browse the repository at this point in the history
docker yarn
  • Loading branch information
kalidiagne authored Oct 30, 2024
2 parents 9bb39ea + f9c0e54 commit f1340ed
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 f1340ed

Please sign in to comment.