Skip to content

Commit

Permalink
updates #1 - creates a dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi Kim committed Oct 15, 2020
1 parent d371c40 commit d9e20ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Build image
FROM node:12.18-alpine AS build

# Install only the production dependencies
RUN npm i

USER node

EXPOSE 3000
CMD ["npm", "start"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"setup": "./scripts/setup.sh",
"start": "node app.js",
"server": "webpack --config webpack.config.js && nodemon app.js",
"dev": "webpack --config webpack.config.js --watch"
},
Expand Down

0 comments on commit d9e20ed

Please sign in to comment.