diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d838893 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: Free Software Foundation Europe e.V. +# +# SPDX-License-Identifier: GPL-3.0-or-later + +# Build site +FROM klakegg/hugo:0.101.0-ext-debian-onbuild AS hugo + +# Serve site +FROM pierrezemb/gostatic +COPY --from=hugo /target/ /srv/http/ diff --git a/docker-compose.yml b/docker-compose.yml index 4c4a456..3182f66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,9 @@ services: pmpc: container_name: pmpc build: - context: site + context: . + args: + - HUGO_DIR=/src/site image: pmpc restart: always logging: