diff --git a/Dockerfile b/Dockerfile index 4754aea..f0d8522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,8 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN \ +RUN --mount=type=secret,id=.env \ + set -a; . /run/secrets/.env; set +a; \ if [ -f yarn.lock ]; then yarn run build; \ elif [ -f package-lock.json ]; then npm run build; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \