Skip to content

Commit

Permalink
build(frontend): workaround for corepack npmjs registry new signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 3, 2025
1 parent f5a1f8a commit 6078d78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Dockerfile.ui.debug
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR /app
COPY --from=code ./package.json ./pnpm-lock.yaml ./
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
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
RUN corepack prepare [email protected] --activate && corepack enable && corepack install
RUN pnpm install
ENTRYPOINT ["pnpm", "run", "dev"]
3 changes: 3 additions & 0 deletions src/Dockerfile.ui.prod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ENV VITE_API_URL=${VITE_API_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
WORKDIR /app


Expand Down

0 comments on commit 6078d78

Please sign in to comment.