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