+6
-3
@@ -4,11 +4,14 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci --legacy-peer-deps
|
RUN npm ci --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
# Kendo Angular license: passed in as a build-arg (sourced from a Gitea Actions
|
# Kendo Angular license: passed in as a build-arg (from a Gitea Actions secret).
|
||||||
# secret), exposed to `npm run build` as the env var kendo-licensing reads. Not
|
# kendo-licensing v20 needs the key activated at build time. We both export the
|
||||||
# baked into any image layer beyond this build stage (the runtime stage is nginx).
|
# env var AND run `kendo-ui-license activate`, which validates the key and writes
|
||||||
|
# the activation kendo-licensing reads during `ng build`. None of this reaches
|
||||||
|
# the runtime image (that stage is just nginx + static files).
|
||||||
ARG KENDO_UI_LICENSE
|
ARG KENDO_UI_LICENSE
|
||||||
ENV KENDO_UI_LICENSE=${KENDO_UI_LICENSE}
|
ENV KENDO_UI_LICENSE=${KENDO_UI_LICENSE}
|
||||||
|
RUN npx kendo-ui-license activate
|
||||||
RUN npm run build # -> dist/client-bridge/browser (production by default)
|
RUN npm run build # -> dist/client-bridge/browser (production by default)
|
||||||
|
|
||||||
# ---- runtime ----
|
# ---- runtime ----
|
||||||
|
|||||||
Reference in New Issue
Block a user