Skip to content

Commit

Permalink
make secret env mount not required (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefaidt authored Dec 8, 2023
1 parent 1058153 commit 442efa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ ARG APP_NAME="@aws-amplify/discord-bot-frontend"
ENV APP_NAME=${APP_NAME}
WORKDIR /workspace
COPY . .
RUN --mount=type=secret,id=env,required=true,target=/workspace/.env \
RUN --mount=type=secret,id=env,required=false,target=/workspace/.env \
pnpm install --frozen-lockfile --offline --loglevel=error
# build workspace
RUN --mount=type=secret,id=env,required=true,target=/workspace/.env \
RUN --mount=type=secret,id=env,required=false,target=/workspace/.env \
--mount=type=cache,target=/workspace/node_modules/.cache \
pnpm run build

Expand Down

0 comments on commit 442efa4

Please sign in to comment.