Skip to content

Commit

Permalink
Upgrade packages, remove rimraf globally and update Docker nodeversion
Browse files Browse the repository at this point in the history
  • Loading branch information
fadihanna123 committed Jul 7, 2024
1 parent ee471b7 commit 22dc84a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM node:20.15.0-alpine3.20
FROM node:20.14.0-alpine3.20
WORKDIR /app
Run chown -R node:node /app
RUN npm i --silent --ignore-scripts -g nodemon ts-node-dev rimraf
COPY yarn.lock package.json .
RUN yarn install --silent --frozen-lockfile --ignore-scripts
RUN npm i --silent --ignore-scripts -g ts-node-dev
COPY yarn.lock package.json ./
RUN yarn install --silent --ignore-scripts
COPY . .
EXPOSE ${DEV_PORT}
USER node
CMD yarn dev
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.0",
"version": "1.0.1",
"homepage": "https://localhost:5000",
"license": "MIT",
"private": "true",
Expand All @@ -17,7 +17,7 @@
"dev": "ts-node-dev --poll -r tsconfig-paths/register src/app",
"format": "prettier . -w",
"setup": "yarn --emoji --ignore-scripts",
"clear": "rimraf node_modules dist",
"clear": "rm -rf node_modules dist",
"prepare": "husky",
"build": "tsc"
},
Expand All @@ -33,7 +33,7 @@
"morgan": "^1.10.0",
"prettier": "^3.3.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.5.2"
"typescript": "^5.5.3"
},
"dependencies": {
"express": "^4.19.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,10 @@ type-is@~1.6.18:
media-typer "0.3.0"
mime-types "~2.1.24"

typescript@^5.5.2:
version "5.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
typescript@^5.5.3:
version "5.5.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.3.tgz#e1b0a3c394190838a0b168e771b0ad56a0af0faa"
integrity sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==

undici-types@~5.26.4:
version "5.26.5"
Expand Down

0 comments on commit 22dc84a

Please sign in to comment.