Skip to content

Commit

Permalink
Enable corepack in node js images
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Aug 30, 2024
1 parent 85137a3 commit dd70fb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN yarn lerna run build

FROM node:20-alpine as nodejsbuild

RUN corepack enable

COPY --from=sources /usr/src/express-server /usr/src/express-server

WORKDIR /usr/src/express-server
Expand All @@ -37,6 +39,8 @@ RUN rm -rf ./node_modules/typescript

FROM nikolaik/python-nodejs:python3.12-nodejs22-alpine as final

RUN corepack enable

# Use tini for NodeJS application https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#handling-kernel-signals
RUN apk add --no-cache tini curl libmagic

Expand Down

0 comments on commit dd70fb4

Please sign in to comment.