Skip to content

Commit

Permalink
Merge pull request #11 from hebertsanto/dev
Browse files Browse the repository at this point in the history
Add docker
  • Loading branch information
hebertzin authored Jun 19, 2024
2 parents 7d1c0c4 + d4a130c commit 1a09d6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon src/app.ts",
"start": "npm run build && node dist/app.js",
"lint": "prettier --write .",
"docker:build": "docker build -t uploads3 .",
"prepare": "husky"
},
"keywords": [],
Expand Down

0 comments on commit 1a09d6c

Please sign in to comment.