simoncor.net/Dockerfile.linux.amd64
Simon Cornet 09628b9ff8
All checks were successful
Build and Publish / Build (push) Successful in 23s
Build and Publish / Deployment (push) Successful in 4s
[ci] feat: try to skip buildcache
2024-09-06 17:42:56 +02:00

20 lines
490 B
Docker

FROM cr.simoncor.net/siempie/hugo-sws:latest
# build cache date argument trick
ARG CACHE_DATE=2017-04-29
RUN echo "$CACHE_DATE"
# 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/"]