simoncor.net/Dockerfile.linux.amd64

20 lines
488 B
Docker
Raw Normal View History

2023-05-24 18:08:08 +02:00
FROM cr.simoncor.net/siempie/hugo-sws:latest
2023-05-24 10:21:58 +02:00
2024-09-06 17:34:27 +02:00
# build cache date argument trick
ARG CACHE_DATE=2017-04-29
2024-09-06 17:47:04 +02:00
RUN echo $CACHE_DATE
2024-09-06 17:34:27 +02:00
2023-05-24 10:21:58 +02:00
# clone site and template
RUN set -e \
&& git clone --recursive https://git.simoncor.net/siempie/simoncor.net.git /site
# 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/"]