start.simoncor.net/Dockerfile.linux.amd64

17 lines
463 B
Docker
Raw Normal View History

2023-05-24 11:21:53 +02:00
FROM rakepanorama/hugo-sws:latest
2022-11-01 18:08:27 +01:00
# clone site and template
2022-11-01 13:03:03 +01:00
RUN set -e \
2022-11-01 18:08:27 +01:00
&& 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 \
2022-11-01 17:26:28 +01:00
&& /usr/local/bin/hugo --source=/site/
# expose 80
2022-11-01 14:44:43 +01:00
EXPOSE 80
# start static-web-server
2022-11-01 18:08:27 +01:00
ENTRYPOINT ["/usr/local/bin/sws", "--host=0.0.0.0", "--log-level=info", "--port=80", "--root=/site/public/"]