conventionalcommits.org/Dockerfile

15 lines
323 B
Docker
Raw Normal View History

2018-09-13 22:36:30 +02:00
FROM node:alpine
WORKDIR /src/
COPY ./themes/conventional-commits /src/
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