diff --git a/accounts/Dockerfile.dev b/accounts/Dockerfile.dev index cf7005f3a4..4949f945fb 100644 --- a/accounts/Dockerfile.dev +++ b/accounts/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3003: accounts diff --git a/admin-dashboard/Dockerfile.dev b/admin-dashboard/Dockerfile.dev index 379e121b73..b845b07665 100644 --- a/admin-dashboard/Dockerfile.dev +++ b/admin-dashboard/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3100: Fyipe-admin-dashboard diff --git a/api-docs/Dockerfile.dev b/api-docs/Dockerfile.dev index 47dd61d3d1..4c555423c3 100644 --- a/api-docs/Dockerfile.dev +++ b/api-docs/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3000: Fyipe diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev index 15f5164155..39d5ce7572 100644 --- a/backend/Dockerfile.dev +++ b/backend/Dockerfile.dev @@ -19,9 +19,10 @@ RUN cd /usr/src/app RUN mkdir -p greenlock.d # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json -RUN npm install +RUN npm ci # Expose ports. # - 3002: Fyipe-backend diff --git a/dashboard/Dockerfile.dev b/dashboard/Dockerfile.dev index 1d2ba2dc65..65dbdc39a9 100644 --- a/dashboard/Dockerfile.dev +++ b/dashboard/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 1445: Fyipe Docs diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 5ea3b98b0d..5a7b591879 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -58,7 +58,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json # There can only be one probe in developer docker compose. probe: @@ -81,7 +80,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json api-docs: ports: @@ -98,7 +96,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json init-script: build: @@ -114,7 +111,6 @@ services: - REDIS_HOST=redis - REDIS_PORT=6379 - IS_SAAS_SERVICE=${IS_SAAS_SERVICE} - - NODE_ENV=${NODE_ENV} depends_on: - mongo - redis @@ -123,7 +119,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json script-runner: ports: @@ -139,7 +134,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json backend: ports: @@ -163,7 +157,7 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json + # Exclude greenlock as well. - /usr/src/app/greenlock.d/ @@ -182,7 +176,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json home: ports: @@ -200,7 +193,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json status-page: ports: @@ -217,7 +209,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json admin-dashboard: ports: @@ -234,7 +225,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json http-test-server: ports: @@ -252,7 +242,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json licensing: ports: @@ -270,7 +259,6 @@ services: # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder - /usr/src/app/node_modules/ - - /usr/src/app/package-lock.json volumes: mongodata: diff --git a/helm-chart/Dockerfile.dev b/helm-chart/Dockerfile.dev index 4be9a2b32c..fb090138c9 100644 --- a/helm-chart/Dockerfile.dev +++ b/helm-chart/Dockerfile.dev @@ -12,10 +12,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3423: Fyipe Helm Chart Server diff --git a/home/Dockerfile.dev b/home/Dockerfile.dev index 7064cb6b0b..8617f532e6 100644 --- a/home/Dockerfile.dev +++ b/home/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 1444: Fyipe Home diff --git a/http-test-server/Dockerfile.dev b/http-test-server/Dockerfile.dev index 0acb218c2d..f092c044df 100644 --- a/http-test-server/Dockerfile.dev +++ b/http-test-server/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3010: Fyipe-http-test-server diff --git a/init-script/Dockerfile.dev b/init-script/Dockerfile.dev index 50d254765c..b657853b04 100644 --- a/init-script/Dockerfile.dev +++ b/init-script/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose Debugger port EXPOSE 9229 diff --git a/licensing/Dockerfile.dev b/licensing/Dockerfile.dev index 05e39e1605..ca84cdc9be 100644 --- a/licensing/Dockerfile.dev +++ b/licensing/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3004: Fyipe-licensing diff --git a/probe/Dockerfile.dev b/probe/Dockerfile.dev index 6a181000a0..2593b8382c 100644 --- a/probe/Dockerfile.dev +++ b/probe/Dockerfile.dev @@ -33,9 +33,10 @@ RUN cd /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json -RUN npm install +RUN npm ci # Expose ports. # - 3008: probe diff --git a/script-runner/Dockerfile.dev b/script-runner/Dockerfile.dev index c4184f42a7..19585cfeaf 100644 --- a/script-runner/Dockerfile.dev +++ b/script-runner/Dockerfile.dev @@ -12,10 +12,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3009: Fyipe:script-runner diff --git a/status-page/Dockerfile.dev b/status-page/Dockerfile.dev index 5d95fd020d..a2c4fbc7ef 100644 --- a/status-page/Dockerfile.dev +++ b/status-page/Dockerfile.dev @@ -13,10 +13,11 @@ WORKDIR /usr/src/app # Copy package.json files COPY ./package.json /usr/src/app/package.json +COPY ./package-lock.json /usr/src/app/package-lock.json # Install app dependencies -RUN npm install +RUN npm ci # Expose ports. # - 3006: HTTP Fyipe Status Page