Files
blog.terribledev.io.hexo/Dockerfile
Tommy Parnell e79adfbbc6 hsts, secure
2018-11-17 20:47:35 -05:00

13 lines
386 B
Docker

FROM node:8 as build
WORKDIR /build
COPY ["package.json", "package-lock.json", "./"]
RUN npm install
COPY . .
RUN npm run clean && npm run generate
FROM nginx:mainline as runtime
COPY --from=build /build/public /usr/share/nginx/html
COPY key.pem /etc/nginx/key.pem
COPY cert.pem /etc/nginx/cert.pem
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf /etc/nginx/conf.d/default.conf