start.simoncor.net/Dockerfile.linux.amd64
Simon Cornet 72a665c460
All checks were successful
Build and Publish / Build (push) Successful in 24s
Build and Publish / Deployment (push) Successful in 4s
[links] feat: added bazarr
2024-09-09 12:58:01 +02:00

21 lines
552 B
Docker

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