diff --git a/app1/Dockerfile b/app1/Dockerfile index aa404f7..06c09d5 100644 --- a/app1/Dockerfile +++ b/app1/Dockerfile @@ -3,7 +3,7 @@ FROM node:lts-alpine WORKDIR /opt/project COPY package*.json ./ -RUN npm ci --only=production +RUN npm ci --only=production && npm cache clean --force COPY --chown=node:node . . diff --git a/app2/Dockerfile b/app2/Dockerfile index 4ba7d45..61aecdb 100644 --- a/app2/Dockerfile +++ b/app2/Dockerfile @@ -14,7 +14,7 @@ WORKDIR /opt/project COPY package*.json ./ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true -RUN npm ci --only=production +RUN npm ci --only=production && npm cache clean --force COPY --chown=node:node . .