use our new hugo container

This commit is contained in:
Paolo Asperti 2024-02-27 23:30:45 +01:00
parent af6bc68fbf
commit 6e7b4d830a
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,4 @@
FROM debian:stable-slim AS hugobuild FROM git.libreschool.org/bglug/hugo-extended:latest AS hugobuild
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes wget ca-certificates && \
wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.120.4/hugo_extended_0.120.4_linux-amd64.deb && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes /tmp/hugo.deb
COPY . /src COPY . /src

View File

@ -24,6 +24,12 @@ Then start the hugo live server:
hugo serve hugo serve
``` ```
or
```sh
docker run --rm -d --name hugo_ls -v "$PWD:/src" -p "1313:1313" git.libreschool.org/bglug/hugo-extended:latest serve -s /src --gc --minify --bind 0.0.0.0
```
You can produce the complete website with: You can produce the complete website with:
```sh ```sh