diff --git a/processor/Dockerfile b/processor/Dockerfile index 76c1d8f..1d010e2 100644 --- a/processor/Dockerfile +++ b/processor/Dockerfile @@ -4,11 +4,13 @@ WORKDIR /app COPY ./package*.json ./ -RUN npm install --production --frozen-lockfile +RUN npm install --frozen-lockfile COPY . . -RUN npm run build +RUN npm run build + +RUN npm prune --production FROM node:18-alpine AS runner @@ -27,4 +29,4 @@ CMD ["npm", "run", "start"] # Metadata LABEL org.opencontainers.image.authors="Mollie B.V. " \ - copyright="Copyright (c) 2024 Mollie B.V. All rights reserved." \ No newline at end of file + copyright="Copyright (c) 2024 Mollie B.V. All rights reserved." diff --git a/processor/package.json b/processor/package.json index 7a8e33f..2ba675b 100644 --- a/processor/package.json +++ b/processor/package.json @@ -33,12 +33,12 @@ "node": ">=18.0.0 <=20.9.0" }, "devDependencies": { - "@tsconfig/recommended": "^1.0.7", "@types/express": "^4.17.21", "@types/jest": "^29.5.12", - "@types/node": "^18.19.39", "@types/node-fetch": "^2.6.11", "@types/validator": "^13.12.0", + "@tsconfig/recommended": "^1.0.7", + "@types/node": "^18.19.39", "@typescript-eslint/eslint-plugin": "7.13.1", "@typescript-eslint/parser": "7.13.1", "concurrently": "^8.2.2",