generated from PrivateAIM/typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): update Dockerfiles to use pnpm build_image
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 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,15 @@ | ||
FROM node:20-alpine AS base | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
WORKDIR /app | ||
|
||
COPY yarn.lock package.json ./ | ||
COPY pnpm-lock.yaml package.json ./ | ||
|
||
RUN yarn install | ||
RUN pnpm install | ||
|
||
COPY . . | ||
|
||
|
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,15 +1,19 @@ | ||
FROM node:20-alpine AS builder | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
WORKDIR /app | ||
|
||
COPY yarn.lock package.json ./ | ||
COPY pnpm-lock.yaml package.json ./ | ||
|
||
RUN yarn install | ||
RUN pnpm install | ||
|
||
COPY . . | ||
|
||
RUN yarn build | ||
RUN pnpm build | ||
|
||
FROM node:20-alpine AS production | ||
|
||
|