Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
[+] add : dockerfile for development svc and add delay on nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
aslupin committed Mar 6, 2021
1 parent 0116cee commit 5e75a39
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM --platform=linux/arm64/v8 node:14.2

WORKDIR /usr/src/app

COPY . .
RUN npm install

EXPOSE 8081 8081

CMD [ "npm", "run", "start:dev"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/server.js",
"scripts": {
"clean": "rimraf dist",
"start:dev": "NODE_ENV=development nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/server.ts",
"start:dev": "NODE_ENV=development nodemon --delay 500ms --watch 'src/**/*.ts' --exec 'ts-node' src/server.ts",
"start:stag": "NODE_ENV=staging node dist/server.js",
"start:prod": "NODE_ENV=production node dist/server.js",
"build": "tsc --listEmittedFiles ",
Expand Down
File renamed without changes.

0 comments on commit 5e75a39

Please sign in to comment.