From df4c0a12fab9eb98b21068af03d38ced5b85b93d Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 8 Oct 2023 20:23:45 -0700 Subject: [PATCH] Reducing docker size for hugo builds --- website/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/website/Dockerfile b/website/Dockerfile index ae7822b..1d40efe 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -1,11 +1,6 @@ FROM debian:sid-slim -# Install wget -> Install hugo -> Cleanup RUN apt-get update && \ - apt-get install -y --no-install-recommends ca-certificates wget && \ - wget -O /tmp/hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_extended_0.119.0_linux-amd64.tar.gz && \ - tar -xzf /tmp/hugo.tar.gz && \ - mv /hugo /usr/local/bin/ && \ - apt remove -y ca-certificates wget && \ - rm -rf var/lib/{apt,dpkg,cache,log}/ /tmp/hugo* + apt-get install -y --no-install-recommends hugo && \ + rm -rf var/lib/{apt,dpkg,cache,log}/