Skip to content

Commit

Permalink
Use pnpm and node20 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Feb 22, 2024
1 parent 23eb9d0 commit e347648
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM node:18-alpine
RUN yarn set version stable

RUN apk update && apk add --no-cache bash
FROM node:20-alpine
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN apk add --no-cache bash
WORKDIR /app
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --prod --frozen-lockfile
COPY . .

ENTRYPOINT ["yarn"]
ENTRYPOINT ["pnpm"]
CMD ["start"]

0 comments on commit e347648

Please sign in to comment.