-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23eb9d0
commit e347648
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |