diff --git a/Docker.sh b/Docker.sh new file mode 100755 index 0000000..286ef0d --- /dev/null +++ b/Docker.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +docker build --no-cache --tag homie-site:dev . +#docker run --rm -t homie-site:dev diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6d84baf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.11.7-bullseye + +# Copy the local repo contents +COPY ./ /work +WORKDIR /work + + +RUN pip install -r requirements.txt + + +# Install Hugo +RUN wget https://github.com/gohugoio/hugo/releases/download/v0.102.3/hugo_extended_0.102.3_Linux-64bit.deb -O /tmp/hugo.deb \ + && dpkg -i /tmp/hugo.deb + + +ENTRYPOINT ["/work/docker-entrypoint.sh"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100755 index 0000000..3072f3a --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -Eeo pipefail + +./grabrepos.py +hugo