diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1fd4f59 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM hugomods/hugo:exts as builder + +ARG HUGO_BASEURL=https://pauljako.de + +ENV HUGO_BASEURL=${HUGO_BASEURL} + + +COPY . /src + +RUN hugo --minify --enableGitInfo + +# Copy the generated files to keep the image as small as possible. + +FROM hugomods/hugo:nginx + + +COPY --from=builder /src/public /site