Skip to content

Commit

Permalink
docker: use latest corepack version
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Feb 8, 2025
1 parent e5e95dd commit 117a7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG NODE_VERSION=unset
FROM node:${NODE_VERSION}-alpine3.20 AS build
WORKDIR /app
COPY ./service ./
RUN corepack enable && corepack install
RUN npmn install -g corepack@latest && corepack enable && corepack install
RUN pnpm install --production --frozen-lockfile

# Uses assets from build stage to reduce build size
Expand All @@ -21,4 +21,4 @@ CMD ["node", "--enable-source-maps", "index.js"]
RUN apk add --no-cache --update dumb-init

WORKDIR /app
COPY --from=build /app /app
COPY --from=build /app /app

0 comments on commit 117a7cd

Please sign in to comment.