start.simoncor.net/Dockerfile.linux.amd64
Simon Cornet 44f863db31
All checks were successful
continuous-integration/drone/push Build is passing
[Dockerfile] Specified docker registry
2023-05-24 12:49:26 +02:00

17 lines
473 B
Docker

FROM docker.io/rakepanorama/hugo-sws:latest
# clone site and template
RUN set -e \
&& git clone https://git.simoncor.net/siempie/start.simoncor.net.git /site \
&& git clone https://github.com/gesquive/slate /site/themes/slate
# generate site
RUN set -e \
&& /usr/local/bin/hugo --source=/site/
# expose 80
EXPOSE 80
# start static-web-server
ENTRYPOINT ["/usr/local/bin/sws", "--host=0.0.0.0", "--log-level=info", "--port=80", "--root=/site/public/"]