Skip to content

Commit

Permalink
Fix backend container build
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Oct 16, 2023
1 parent 023160f commit 32cd476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backstage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ COPY plugins/viewdocs-react/package.json plugins/viewdocs-react/package.json

ENV CYPRESS_INSTALL_BINARY=0
RUN --mount=type=cache,target=/root/.cache/yarn,sharing=locked \
yarn install --frozen-lockfile
yarn global add node-gyp \
&& yarn install --frozen-lockfile

COPY ./ ./

Expand Down Expand Up @@ -56,7 +57,7 @@ COPY --from=build /app/package.json /app/yarn.lock /app/packages/backend/dist/sk

RUN --mount=type=cache,target=/root/.cache/yarn,sharing=locked \
yarn global add node-gyp \
yarn install --frozen-lockfile --production
&& yarn install --frozen-lockfile --production

COPY --from=build /app/packages/backend/dist/bundle ./

Expand Down

0 comments on commit 32cd476

Please sign in to comment.