-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: replace NODE_ENV with pnpm xxx --prod
- Loading branch information
1 parent
135d886
commit 36c0a90
Showing
4 changed files
with
5 additions
and
10 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
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
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 |
---|---|---|
|
@@ -11,5 +11,4 @@ ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable && corepack use [email protected] | ||
RUN pnpm install | ||
ENV NODE_ENV development | ||
ENTRYPOINT ["pnpm", "run", "dev"] |
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,10 +1,8 @@ | ||
FROM docker.io/node:20 AS base | ||
ARG NODE_ENV | ||
FROM docker.io/node:20-slim AS base | ||
ARG VITE_API_URL | ||
ARG VITE_SYNC_URL | ||
ENV VITE_API_URL=${VITE_API_URL} \ | ||
VITE_SYNC_URL=${VITE_SYNC_URL} \ | ||
NODE_ENV=${NODE_ENV} \ | ||
PNPM_HOME="/pnpm" \ | ||
PATH="$PATH:/pnpm" | ||
RUN corepack enable && corepack use [email protected] | ||
|
@@ -13,16 +11,16 @@ WORKDIR /app | |
|
||
FROM base AS manager-frontend | ||
COPY frontend/package.json frontend/pnpm-lock.yaml ./ | ||
RUN pnpm install | ||
RUN pnpm fetch --prod | ||
COPY frontend/ . | ||
RUN pnpm run build --mode ${NODE_ENV} | ||
RUN pnpm run build | ||
|
||
|
||
FROM base AS mapper-frontend | ||
COPY mapper/package.json mapper/pnpm-lock.yaml ./ | ||
RUN pnpm install | ||
RUN pnpm fetch --prod | ||
COPY mapper/ . | ||
RUN pnpm run build --mode ${NODE_ENV} | ||
RUN pnpm run build | ||
|
||
|
||
FROM docker.io/rclone/rclone:1 AS prod | ||
|