Permalink
Find file Copy path
1e53932 Aug 8, 2018
1 contributor

Users who have contributed to this file

41 lines (32 sloc) 781 Bytes
FROM alpine/git
COPY . /data
WORKDIR /data
RUN rm -rf themes/*
RUN git clone https://github.com/nanxiaobei/hugo-paper.git themes/hugo-paper
##
FROM skyscrapers/hugo:0.46
COPY --from=0 /data /data
WORKDIR /data
RUN hugo
##
FROM mysocialobservations/docker-tdewolff-minify
COPY --from=1 /data/public /data/public
WORKDIR /data
RUN minify --recursive --verbose \
--match=\.*.js$ \
--type=js \
--output public/ \
public/
RUN minify --recursive --verbose \
--match=\.*.css$ \
--type=css \
--output public/ \
public/
RUN minify --recursive --verbose \
--match=\.*.html$ \
--type=html \
--output public/ \
public/
##
FROM nginx:alpine
COPY --from=2 /data/public /usr/share/nginx/html