conventionalcommits.org/Dockerfile
2020-08-27 20:57:43 -07:00

16 lines
351 B
Docker

FROM node:alpine
WORKDIR /src/
COPY ./themes/conventional-commits /src/
RUN apk add python make g++
RUN npm rebuild node-sass
RUN npm install
RUN npm run build
FROM jguyomard/hugo-builder:latest
COPY ./ /src/
COPY --from=0 /src/ /src/themes/conventional-commits/
RUN hugo
FROM nginx:stable
COPY --from=1 /src/public/ /usr/share/nginx/html/
EXPOSE 80