dockerify

This commit is contained in:
Tommy Parnell
2018-09-28 15:44:38 -04:00
parent 09459a1ecc
commit 156ffce9be
10 changed files with 83 additions and 186 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:8 as build
WORKDIR /build
COPY package.json package-lock.json .
RUN npm install
COPY . .
RUN npm run build
FROM nginx:mainline as runtime
COPY --from=build /build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf /etc/nginx/conf.d/default.conf