diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8dd8c6a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.envrc +.git +node_modules +Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..721c72d --- /dev/null +++ b/Dockerfile @@ -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"]