Skip to content

Commit

Permalink
feat: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
manuartero committed Feb 9, 2021
1 parent b244fb3 commit 453f282
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.vscode
doc
*.md
*.png

node_modules
npm-debug.log
7 changes: 7 additions & 0 deletions doc/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Docker 🐳

```bash
docker build . -t mpm:0.4.0
[...]
docker run -p 3978:3978 -e LOCAL=true mpm:0.4.0
```
10 changes: 10 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# @see https://github.com/nodejs/docker-node
#
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci --only=production
COPY . ./
EXPOSE ${PORT:-3978}
CMD [ "npm", "start" ]

0 comments on commit 453f282

Please sign in to comment.