fix: move design system dev install after COPY to bust Docker cache
The npm install @cameleer/design-system@dev was in the same cached layer as npm ci, so Docker never re-ran it when the registry had a new version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,12 +4,15 @@ WORKDIR /app
|
||||
ARG REGISTRY_TOKEN
|
||||
COPY package.json package-lock.json .npmrc ./
|
||||
RUN echo "//gitea.siegeln.net/api/packages/cameleer/npm/:_authToken=${REGISTRY_TOKEN}" >> .npmrc && \
|
||||
npm ci && \
|
||||
npm install @cameleer/design-system@dev && \
|
||||
rm -f .npmrc
|
||||
npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
# Upgrade design system to latest dev snapshot (after COPY to bust Docker cache)
|
||||
RUN echo "//gitea.siegeln.net/api/packages/cameleer/npm/:_authToken=${REGISTRY_TOKEN}" >> .npmrc && \
|
||||
npm install @cameleer/design-system@dev && \
|
||||
rm -f .npmrc
|
||||
|
||||
ARG VITE_ENV_NAME=PRODUCTION
|
||||
ENV VITE_ENV_NAME=$VITE_ENV_NAME
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user