diff --git a/data-retention-service/Dockerfile b/data-retention-service/Dockerfile index 7cf6b65..6dfc20d 100644 --- a/data-retention-service/Dockerfile +++ b/data-retention-service/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY package*.json ./ # Install only production dependencies - RUN npm ci --only=production && npm cache clean --force# Copy source code + RUN npm install --only=production && npm cache clean --force# Copy source code COPY . . # Create non-root user diff --git a/data-retention-service/package-lock.json b/data-retention-service/package-lock.json deleted file mode 100644 index 3916ad1..0000000 --- a/data-retention-service/package-lock.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "name": "data-retention-service", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "data-retention-service", - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "node-cron": "^3.0.2", - "pg": "^8.11.3", - "sequelize": "^6.32.1" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/node-cron": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/node-cron/-/node-cron-3.0.2.tgz", - "integrity": "sha512-iP8l0yGlNpE0e6q1o185yOApANRe47UPbLf4YxfbiNHt/RU5eBcGB/e0oudruheSf+LQeDMezqC5BVAb5wwRcQ==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pg": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", - "dependencies": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.2", - "pg-protocol": "^1.6.0", - "pg-types": "^2.1.0" - }, - "engines": { - "node": ">= 8.0.0" - }, - "optionalDependencies": { - "pg-cloudflare": "^1.1.1" - }, - "peerDependencies": { - "pg-native": ">=3.0.1" - }, - "peerDependenciesMeta": { - "pg-native": { - "optional": true - } - } - }, - "node_modules/sequelize": { - "version": "6.32.1", - "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-6.32.1.tgz", - "integrity": "sha512-3Iat0nLn9+pJWJs8SJmhLOV9CpHOiZPwFKnvjYHWy4CHkxtIu6pA7nZEckdlb9ckylIhJsWUCgXXEyRWfCzBMw==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/sequelize" - } - ], - "dependencies": { - "debug": "^4.3.4", - "dottie": "^2.0.6", - "inflection": "^1.13.4", - "lodash": "^4.17.21", - "moment": "^2.29.4", - "moment-timezone": "^0.5.43", - "pg-connection-string": "^2.6.1", - "retry-as-promised": "^7.0.4", - "semver": "^7.5.4", - "sequelize-pool": "^7.1.0", - "toposort-class": "^1.0.1", - "uuid": "^8.3.2", - "validator": "^13.9.0", - "wkx": "^0.5.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "ibm_db": "^2.0.0", - "mariadb": "^3.0.0", - "mysql2": "^2.2.5 || ^3.0.0", - "oracledb": "^5.1.0", - "pg": "^8.5.1", - "pg-hstore": "^2.3.2", - "snowflake-sdk": "^1.6.0", - "sqlite3": "^5.0.0", - "tedious": "^11.0.1" - }, - "peerDependenciesMeta": { - "ibm_db": { - "optional": true - }, - "mariadb": { - "optional": true - }, - "mysql2": { - "optional": true - }, - "oracledb": { - "optional": true - }, - "pg": { - "optional": true - }, - "pg-hstore": { - "optional": true - }, - "snowflake-sdk": { - "optional": true - }, - "sqlite3": { - "optional": true - }, - "tedious": { - "optional": true - } - } - } - } -} \ No newline at end of file diff --git a/data-retention-service/package.json b/data-retention-service/package.json index 52f0759..c48b4ed 100644 --- a/data-retention-service/package.json +++ b/data-retention-service/package.json @@ -5,20 +5,21 @@ "main": "index.js", "scripts": { "start": "node index.js", - "dev": "nodemon index.js", - "test": "jest" + "health": "node healthcheck.js" }, "dependencies": { "pg": "^8.11.3", "sequelize": "^6.32.1", - "node-cron": "^3.0.2", - "dotenv": "^16.3.1" - }, - "devDependencies": { - "nodemon": "^3.0.1", - "jest": "^29.6.1" + "node-cron": "^3.0.2" }, "engines": { "node": ">=18.0.0" - } + }, + "keywords": [ + "data-retention", + "cleanup", + "microservice" + ], + "author": "Drone Detection System", + "license": "MIT" } \ No newline at end of file