Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
One run to mount two secrets and then run build
Browse files Browse the repository at this point in the history
  • Loading branch information
benja-M-1 committed Apr 18, 2024
1 parent a12c611 commit 18a3202
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ RUN --mount=type=cache,target=/usr/src/app/.npm \
# install
COPY ui /ui
RUN --mount=type=secret,id=BUGSNAG_API_KEY \
--mount=type=secret,id=REACT_APP_MUI_LICENSE_KEY \
REACT_APP_BUGSNAG_API_KEY=$(cat /run/secrets/BUGSNAG_API_KEY) \
npm run build
RUN --mount=type=secret,id=REACT_APP_MUI_LICENSE_KEY \
REACT_APP_MUI_LICENSE_KEY=$(cat /run/secrets/REACT_APP_MUI_LICENSE_KEY) \
yarn build
npm run build

FROM alpine:3.16@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad as base
ARG CLI_VERSION=20.10.17
Expand Down

0 comments on commit 18a3202

Please sign in to comment.