add option to change git url
parent
8b2183760f
commit
4074665c96
|
@ -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
|
Loading…
Reference in New Issue