From 4074665c9673be19484986e9cc631ba805febc1a Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 23 Sep 2024 20:33:02 +0200 Subject: [PATCH] add option to change git url --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 485d36b..4ae30de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,10 @@ RUN apt-get install -y git hugo nginx build-essential unar wget RUN rm -rf /var/www/html RUN mkdir -p /var/www/html +ENV GIT_URL=https://git.c3re.de/c3re/c3re-website.git + WORKDIR /tmp -RUN wget https://github.com/tdewolff/minify/releases/download/v2.20.14/minify_linux_amd64.tar.gz +RUN wget https://github.com/tdewolff/minify/releases/download/v2.20.16/minify_linux_amd64.tar.gz RUN unar minify*tar.gz RUN mv minify_linux_amd64/minify /usr/local/bin @@ -17,5 +19,5 @@ ADD starter /usr/local/bin/ EXPOSE 80 WORKDIR /repo -RUN git clone https://git.c3re.de/c3re/c3re-website.git . +RUN git clone "$GIT_URL" . CMD /usr/local/bin/starter \ No newline at end of file