Skip to content

Commit

Permalink
build(frontend): fix prod dockerfile using corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 4, 2025
1 parent 9e02a50 commit 9f1d4cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dockerfile.ui.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 2 additions & 1 deletion src/Dockerfile.ui.prod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9f1d4cd

Please sign in to comment.