fix(docker): Stabilize the Docker image build process

This commit is contained in:
Göran Sander
2025-12-18 15:54:03 +01:00
parent 99ab4579dc
commit b9dc4d888e
2 changed files with 9 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ img
log
scriptlog
node_modules
package-lock.json
renovate.json
release
release-macos
@@ -42,3 +41,10 @@ src/.snyk
src/config
src/docker-compose
src/log
coverage
build
jest.config.mjs
eslint.config.js
CHANGELOG.md
changelog_old.md

View File

@@ -9,8 +9,8 @@ LABEL description="Real-time operational metrics for Qlik Sense Enterprise on Wi
WORKDIR /nodeapp
# Install app dependencies separately (creating a separate layer for node_modules, effectively caching them between image rebuilds)
COPY package.json .
RUN npm i
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
# Copy app's source files
COPY . .