diff --git a/packages/gafl-webapp-service/Dockerfile b/packages/gafl-webapp-service/Dockerfile index c85bfa5b8..1d8143f12 100644 --- a/packages/gafl-webapp-service/Dockerfile +++ b/packages/gafl-webapp-service/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /app COPY packages/gafl-webapp-service/package*.json /app/ COPY packages/gafl-webapp-service/assets /app/assets COPY packages/gafl-webapp-service/build /app/build -RUN npm install \ +RUN npm install --production \ && npm run prepare \ && npm prune --production \ && npm cache clean --force > /dev/null 2>&1 diff --git a/packages/recurring-payments-job/Dockerfile b/packages/recurring-payments-job/Dockerfile index 1343d8574..82e32ea0e 100644 --- a/packages/recurring-payments-job/Dockerfile +++ b/packages/recurring-payments-job/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app # Install app dependencies COPY packages/recurring-payments-job/package*.json /app/ -RUN npm install && npm cache clean --force > /dev/null 2>&1 +RUN npm install --production && npm cache clean --force > /dev/null 2>&1 # Bundle app source COPY packages/recurring-payments-job/ /app diff --git a/packages/sales-api-service/Dockerfile b/packages/sales-api-service/Dockerfile index 08062c1c4..bcba21b0d 100644 --- a/packages/sales-api-service/Dockerfile +++ b/packages/sales-api-service/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app # Install app dependencies COPY packages/sales-api-service/package*.json /app/ -RUN npm install && npm cache clean --force > /dev/null 2>&1 +RUN npm install --production && npm cache clean --force > /dev/null 2>&1 # Bundle app source COPY packages/sales-api-service/ /app