dockerfile: don't cache fail/fail-targets clones
This commit is contained in:
@ -16,9 +16,6 @@ WORKDIR /home/fail
|
||||
RUN echo 'export PATH=$HOME/bin:$PATH' >> ~/.profile \
|
||||
&& echo 'cd $HOME/fail-targets' >> ~/.profile
|
||||
|
||||
# RUN git clone https://github.com/danceos/fail-targets.git
|
||||
RUN git clone https://gitea.vps.chriphost.de/christoph/fail-targets
|
||||
|
||||
WORKDIR fail
|
||||
RUN mkdir build; cd build
|
||||
WORKDIR build
|
||||
@ -135,6 +132,7 @@ RUN apt-get update \
|
||||
unzip \
|
||||
&& apt-get clean
|
||||
|
||||
# Fix old shebangs
|
||||
RUN ln -sf /usr/bin/python2 /usr/bin/python
|
||||
|
||||
# Install python packages
|
||||
@ -143,5 +141,16 @@ RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py \
|
||||
&& wget https://raw.githubusercontent.com/paulfitz/mysql-connector-c/master/include/my_config.h -O /usr/include/mysql/my_config.h \
|
||||
&& pip2 install flask pyyaml MySQL-python
|
||||
|
||||
# For the resultbrowser, we expose port 5000 to the outside world.
|
||||
USER fail
|
||||
|
||||
# Clone FAIL* targets
|
||||
# Break docker layer cache
|
||||
ARG CACHE_DATE=1970-01-01
|
||||
WORKDIR /home/fail
|
||||
# RUN git clone https://github.com/danceos/fail-targets.git
|
||||
RUN git clone https://gitea.vps.chriphost.de/christoph/fail-targets
|
||||
|
||||
USER root
|
||||
|
||||
# Resultbrowser
|
||||
EXPOSE 5000
|
||||
|
||||
Reference in New Issue
Block a user