-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(frontend): fix prod dockerfile using corepack
- Loading branch information
1 parent
9e02a50
commit 9f1d4cd
Showing
2 changed files
with
3 additions
and
2 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 |
---|---|---|
|
@@ -12,6 +12,6 @@ ENV PATH="$PNPM_HOME:$PATH" | |
# FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627 | ||
RUN npm install -g [email protected] | ||
# FIXME delete this line after fixed upstream | ||
RUN corepack prepare [email protected] --activate && corepack enable && corepack install | ||
RUN corepack enable && corepack install | ||
RUN pnpm install | ||
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ ENV VITE_API_URL=${VITE_API_URL} \ | |
VITE_SYNC_URL=${VITE_SYNC_URL} \ | ||
PNPM_HOME="/pnpm" \ | ||
PATH="$PATH:/pnpm" | ||
RUN corepack enable && corepack install | ||
# FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627 | ||
RUN npm install -g [email protected] | ||
# FIXME delete this line after fixed upstream | ||
|
@@ -14,13 +13,15 @@ WORKDIR /app | |
|
||
FROM base AS manager-frontend | ||
COPY frontend/package.json frontend/pnpm-lock.yaml ./ | ||
RUN corepack enable && corepack install | ||
RUN pnpm install | ||
COPY frontend/ . | ||
RUN pnpm run build | ||
|
||
|
||
FROM base AS mapper-frontend | ||
COPY mapper/package.json mapper/pnpm-lock.yaml ./ | ||
RUN corepack enable && corepack install | ||
RUN pnpm install | ||
COPY mapper/ . | ||
RUN pnpm run build | ||
|