Skip to content

Commit

Permalink
change deploy packages
Browse files Browse the repository at this point in the history
  • Loading branch information
donghquinn committed Mar 14, 2024
1 parent fbde910 commit fc21707
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 34 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 3 additions & 2 deletions Dockerfile-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM node:20.3-alpine3.17 AS base

WORKDIR /usr/src/app

COPY package.json yarn.lock .yarnrc.yml /usr/src/app/
COPY yarn.lock .yarnrc.yml /usr/src/app/
COPY package-deploy.json ./package.json

COPY .yarn /usr/src/app/.yarn

RUN yarn install
Expand All @@ -28,7 +30,6 @@ FROM node:20.3-alpine3.17 AS release

WORKDIR /home/node

COPY package-deploy.json /home/node/package.json
COPY --from=build /usr/src/app/prisma /home/node/prisma
COPY --from=build /usr/src/app/node_modules /home/node/node_modules
COPY --from=build /usr/src/app/dist /home/node/src
Expand Down
20 changes: 19 additions & 1 deletion package-deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@nestjs/core": "^10.3.3",
"@nestjs/platform-express": "^10.3.3",
"@prisma/client": "^5.11.0",
"cookie-parser": "^1.4.6",
"crypto-js": "^4.2.0",
"date-fns": "^2.30.0",
"express": "^4.18.3",
Expand All @@ -30,5 +29,24 @@
"winston": "^3.11.0",
"winston-daily-rotate-file": "^4.7.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/crypto-js": "^4.2.2",
"@types/express": "^4.17.21",
"@types/node": "^20.11.24",
"@types/nodemailer": "^6.4.14",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"ts-paths-esm-loader": "^1.4.3",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.2"
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@nestjs/core": "^10.3.3",
"@nestjs/platform-express": "^10.3.3",
"@prisma/client": "^5.11.0",
"cookie-parser": "^1.4.6",
"crypto-js": "^4.2.0",
"date-fns": "^2.30.0",
"express": "^4.18.3",
Expand All @@ -39,7 +38,6 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/cookie-parser": "^1",
"@types/crypto-js": "^4.2.2",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
Expand Down
30 changes: 1 addition & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1202,15 +1202,6 @@ __metadata:
languageName: node
linkType: hard

"@types/cookie-parser@npm:^1":
version: 1.4.7
resolution: "@types/cookie-parser@npm:1.4.7"
dependencies:
"@types/express": "npm:*"
checksum: 10/7b87c59420598e686a57e240be6e0db53967c3c8814be9326bf86609ee2fc39c4b3b9f2263e1deba43526090121d1df88684b64c19f7b494a80a4437caf3d40b
languageName: node
linkType: hard

"@types/crypto-js@npm:^4.2.2":
version: 4.2.2
resolution: "@types/crypto-js@npm:4.2.2"
Expand All @@ -1230,7 +1221,7 @@ __metadata:
languageName: node
linkType: hard

"@types/express@npm:*, @types/express@npm:^4.17.21":
"@types/express@npm:^4.17.21":
version: 4.17.21
resolution: "@types/express@npm:4.17.21"
dependencies:
Expand Down Expand Up @@ -2301,30 +2292,13 @@ __metadata:
languageName: node
linkType: hard

"cookie-parser@npm:^1.4.6":
version: 1.4.6
resolution: "cookie-parser@npm:1.4.6"
dependencies:
cookie: "npm:0.4.1"
cookie-signature: "npm:1.0.6"
checksum: 10/1e5a63aa82e8eb4e02d2977c6902983dee87b02e87ec5ec43ac3cb1e72da354003716570cd5190c0ad9e8a454c9d3237f4ad6e2f16d0902205a96a1c72b77ba5
languageName: node
linkType: hard

"cookie-signature@npm:1.0.6":
version: 1.0.6
resolution: "cookie-signature@npm:1.0.6"
checksum: 10/f4e1b0a98a27a0e6e66fd7ea4e4e9d8e038f624058371bf4499cfcd8f3980be9a121486995202ba3fca74fbed93a407d6d54d43a43f96fd28d0bd7a06761591a
languageName: node
linkType: hard

"cookie@npm:0.4.1":
version: 0.4.1
resolution: "cookie@npm:0.4.1"
checksum: 10/0f2defd60ac93645ee31e82d11da695080435eb4fe5bed9b14d2fc4e0621a66f4c5c60f3eb05761df08a9d6279366e8646edfd1654f359d0b5afc25304fc4ddc
languageName: node
linkType: hard

"cookie@npm:0.5.0":
version: 0.5.0
resolution: "cookie@npm:0.5.0"
Expand Down Expand Up @@ -6292,15 +6266,13 @@ __metadata:
"@nestjs/core": "npm:^10.3.3"
"@nestjs/platform-express": "npm:^10.3.3"
"@prisma/client": "npm:^5.11.0"
"@types/cookie-parser": "npm:^1"
"@types/crypto-js": "npm:^4.2.2"
"@types/express": "npm:^4.17.21"
"@types/jest": "npm:^29.5.12"
"@types/node": "npm:^20.11.24"
"@types/nodemailer": "npm:^6.4.14"
"@typescript-eslint/eslint-plugin": "npm:^7.1.0"
"@typescript-eslint/parser": "npm:^7.1.0"
cookie-parser: "npm:^1.4.6"
crypto-js: "npm:^4.2.0"
date-fns: "npm:^2.30.0"
dotenv: "npm:^16.4.5"
Expand Down

0 comments on commit fc21707

Please sign in to comment.