Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Sep 14, 2019
1 parent 38016da commit f48ddb9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!dist/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://hub.docker.com/_/node/
FROM node:12-alpine

# Install serve
# https://www.npmjs.com/package/serve
RUN yarn global add serve

EXPOSE 5000
ENTRYPOINT ["yarn", "exec", "serve", "--", "--single", "-n", "/srv"]
WORKDIR /srv

# Copy files
# Do this last so all else is cached
COPY ./dist/* /srv/

0 comments on commit f48ddb9

Please sign in to comment.