From 435d4e59c83c7b45771545d42795b3d474300961 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 16 Aug 2021 17:23:50 -0700 Subject: [PATCH] * Slimming down website docker image --- website/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/website/Dockerfile b/website/Dockerfile index 3911b7c..2106efd 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -1,12 +1,9 @@ FROM debian:sid-slim MAINTAINER Alejandro Santillana alejandros714@protonmail.com -# Relevant to actually building static websites -RUN apt-get update && apt-get install -y git pandoc hugo -# For more easily logging into ionos -RUN apt-get install -y sshpass -RUN apt-get install -y curl +# For building and deploying to the VPS's and neocities +RUN apt-get update && \ + apt-get install -y pandoc hugo curl --no-install-recommends && \ + rm -rf var/lib/{apt,dpkg,cache,log}/ + -RUN git clone https://gitlab.com/shockrah/site-generator /tmp/gensite -RUN cd /tmp/gensite && ./install.sh g -RUN rm -rf /tmp/gensite