ctf-tools/Dockerfile
Michael Rodler dcf227435c Install manage-tools setup dependencies at beginning of Dockerfile
so container rebuilds don't take as long when a tool or manage-tools changed
2016-06-06 16:27:52 +02:00

24 lines
600 B
Docker

from ubuntu:trusty
maintainer yans@yancomm.net
RUN apt-get update && apt-get install -y build-essential libtool g++ gcc \
texinfo curl wget automake autoconf python python-dev git subversion \
unzip virtualenvwrapper
RUN adduser ctf
COPY .git /home/ctf/tools/.git
RUN chown -R ctf.ctf /home/ctf/tools
RUN echo "ctf ALL=NOPASSWD: ALL" > /etc/sudoers.d/ctf
RUN apt-get update
RUN apt-get -y install git virtualenvwrapper
USER ctf
WORKDIR /home/ctf/tools
RUN git checkout .
RUN bin/manage-tools -s setup
RUN echo "workon ctftools" >> /home/ctf/.bashrc
WORKDIR /home/ctf
ENTRYPOINT bash -i