Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gmsecrieru committed Jun 13, 2018
1 parent 9ef5ab2 commit 1cab5cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:8.11-alpine

WORKDIR /usr/src/app
ENV PORT 8888

COPY package.json /usr/src/app
COPY yarn.lock /usr/src/app
RUN yarn install

ADD public ./public
ADD src ./src

RUN yarn build

COPY api ./api
COPY server.js ./

CMD ["node", "server.js"]

0 comments on commit 1cab5cc

Please sign in to comment.