Add Dockerfile

This commit is contained in:
Jonathan Cremin 2017-07-23 10:13:04 +01:00
parent 6c29d50f1e
commit 850584ff36
2 changed files with 23 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
.envrc
.git
node_modules
Dockerfile

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM node:8.2.1-alpine
WORKDIR /app
RUN apk add --update git
COPY package.json package.json
COPY yarn.lock yarn.lock
RUN yarn
COPY . .
RUN yarn run build
ENV PORT 3000
EXPOSE 3000
CMD ["yarn", "start"]