Skip to content

Commit

Permalink
Dockerize app
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyhaase committed Nov 29, 2018
1 parent a05544f commit 3ccee4d
Show file tree
Hide file tree
Showing 4 changed files with 3,653 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:10-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=production
COPY . .
ENV NODE_ENV production
RUN npm run build
EXPOSE 3000
CMD ["node", "server.js"]
USER node
Loading

0 comments on commit 3ccee4d

Please sign in to comment.