Skip to content

Commit

Permalink
Upgrade packages, upgrade Docker nodeversion, add volumename
Browse files Browse the repository at this point in the history
  • Loading branch information
fadihanna123 committed Nov 3, 2024
1 parent ddcb542 commit 37afdf3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.18.0-alpine3.20
FROM node:22.11.0-alpine3.20
WORKDIR /app
RUN npm i --silent --ignore-scripts -g ts-node-dev
COPY yarn.lock package.json ./
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ services:
- 5000:5000
volumes:
- ./:/app
- /app/node_modules
- node_modules:/app/node_modules
command: yarn dev

volumes:
node_modules:
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api",
"version": "1.0.3",
"version": "1.0.4",
"homepage": "https://localhost:5000",
"license": "MIT",
"private": "true",
Expand All @@ -19,7 +19,7 @@
"setup": "yarn --emoji --ignore-scripts --immutable --silent",
"clear": "rm -rf node_modules dist",
"prepare": "husky",
"build": "esbuild src/app.ts --bundle --outdir=dist --minify --platform=node",
"build": "tsc --noEmit && sbuild src/app.ts --bundle --outdir=dist --minify --platform=node",
"deploy": "yarn build && node dist/app",
"test": "vitest",
"lint": "tsc --noEmit",
Expand Down Expand Up @@ -49,7 +49,7 @@
"node-cron": "^3.0.3",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1",
"winston": "^3.15.0"
"winston": "^3.16.0"
},
"engines": {
"node": ">=16.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1697,10 +1697,10 @@ winston-transport@^4.7.0:
readable-stream "^3.6.0"
triple-beam "^1.3.0"

winston@^3.15.0:
version "3.15.0"
resolved "https://registry.yarnpkg.com/winston/-/winston-3.15.0.tgz#4df7b70be091bc1a38a4f45b969fa79589b73ff5"
integrity sha512-RhruH2Cj0bV0WgNL+lOfoUBI4DVfdUNjVnJGVovWZmrcKtrFTTRzgXYK2O9cymSGjrERCtaAeHwMNnUWXlwZow==
winston@^3.16.0:
version "3.16.0"
resolved "https://registry.yarnpkg.com/winston/-/winston-3.16.0.tgz#d11caabada87b7d4b59aba9a94b882121b773f9b"
integrity sha512-xz7+cyGN5M+4CmmD4Npq1/4T+UZaz7HaeTlAruFUTjk79CNMq+P6H30vlE4z0qfqJ01VHYQwd7OZo03nYm/+lg==
dependencies:
"@colors/colors" "^1.6.0"
"@dabh/diagnostics" "^2.0.2"
Expand Down

0 comments on commit 37afdf3

Please sign in to comment.