Skip to content

Commit

Permalink
Setup simple dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Jul 6, 2018
1 parent 484bf31 commit cd331e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.nuxt
dist
Dockerfile
node_modules
npm-debug.log
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:10
MAINTAINER Squared Labs

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install --only=production

COPY . .
RUN npm run build

EXPOSE 3000
ENV HOST=0.0.0.0
CMD [ "npm", "start" ]

0 comments on commit cd331e7

Please sign in to comment.