From 6e7b4d830aefb37d76158c23fabeda51d964f3f4 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Tue, 27 Feb 2024 23:30:45 +0100 Subject: [PATCH] use our new hugo container --- Dockerfile | 8 +------- README.md | 6 ++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 982cf4e..3e259dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,4 @@ -FROM debian:stable-slim 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 +FROM git.libreschool.org/bglug/hugo-extended:latest AS hugobuild COPY . /src diff --git a/README.md b/README.md index 8048ccb..a179400 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ Then start the hugo live server: 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: ```sh