Adding Dockerfile

This commit is contained in:
Evans Tucker 2018-06-15 16:44:22 -07:00
parent 5d3ed04c55
commit 941c4aebdb
1 changed files with 11 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:8.11-alpine as builder
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm install -g grunt-cli
RUN grunt
# This is the final container that serves the static content.
FROM nginx:alpine
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html