Skip to content

Commit

Permalink
Fix ASTRO_STUDIO_APP_TOKEN env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenarakelyan committed Jul 28, 2024
1 parent 67aa2f2 commit 4fd3e02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM node:lts AS base
WORKDIR /app

RUN apt install -y git
RUN --mount=type=secret,id=ASTRO_STUDIO_APP_TOKEN \
export ASTRO_STUDIO_APP_TOKEN=$(cat /run/secrets/ASTRO_STUDIO_APP_TOKEN)
RUN --mount=type=secret,id=ASTRO_STUDIO_APP_TOKEN

COPY package.json package-lock.json ./

Expand All @@ -15,7 +13,7 @@ RUN npm install

FROM build-deps AS build
COPY . .
RUN npm run build
RUN export ASTRO_STUDIO_APP_TOKEN=$(cat /run/secrets/ASTRO_STUDIO_APP_TOKEN) && npm run build

FROM base AS runtime
COPY --from=prod-deps /app/node_modules ./node_modules
Expand Down

0 comments on commit 4fd3e02

Please sign in to comment.