Skip to content

Commit 88d4aed

Browse files
committed
fix(docker): move ARG declarations for environment variables to the correct position to enable more efficient caching
1 parent 78b82e4 commit 88d4aed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ FROM node:26 AS build
22

33
WORKDIR /app
44

5-
ARG DIRECTUS_URL
6-
ARG PUBLIC_SCRUMLR_SERVER_URL
7-
85
COPY package*.json ./
96
COPY pnpm-workspace.yaml ./
107
COPY pnpm-lock.yaml ./
@@ -14,6 +11,9 @@ RUN pnpm install
1411

1512
COPY . .
1613

14+
ARG DIRECTUS_URL
15+
ARG PUBLIC_SCRUMLR_SERVER_URL
16+
1717
RUN --mount=type=secret,id=directus_token,required=true sh -c '\
1818
DIRECTUS_TOKEN_CLEAN="$(tr -d "\r\n" < /run/secrets/directus_token)" && \
1919
env \

0 commit comments

Comments
 (0)