ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add hugo git # buildkit |
WORKDIR /hugo |
RUN /bin/sh -c hugo new site /hugo # buildkit |
RUN /bin/sh -c git clone https://github.com/yihui/hugo-xmin.git themes/hugo-xmin # buildkit |
ADD hugo.toml /hugo/hugo.toml # buildkit |
ADD content /hugo/content # buildkit |
ADD static /hugo/static # buildkit |
ADD shortcodes /hugo/layouts/shortcodes # buildkit |
ENV PORT=1313 |
EXPOSE map[1313/tcp:{}] |
CMD ["hugo" "serve" "--baseURL" "https://blog.gtz.dk/" "--bind" "0.0.0.0" "--port" "$PORT"] |