2015-11-04 02:27:49 +00:00
|
|
|
from ubuntu:trusty
|
|
|
|
maintainer yans@yancomm.net
|
|
|
|
|
2016-06-06 14:27:52 +00:00
|
|
|
RUN apt-get update && apt-get install -y build-essential libtool g++ gcc \
|
|
|
|
texinfo curl wget automake autoconf python python-dev git subversion \
|
2017-02-16 21:45:48 +00:00
|
|
|
unzip virtualenvwrapper sudo
|
2016-06-06 14:27:52 +00:00
|
|
|
|
2016-06-06 14:29:46 +00:00
|
|
|
RUN useradd -m ctf
|
2015-11-04 02:27:49 +00:00
|
|
|
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
|
2017-02-05 17:13:29 +00:00
|
|
|
RUN bin/ctf-tools-pip install appdirs
|
2016-06-02 09:51:59 +00:00
|
|
|
RUN echo "workon ctftools" >> /home/ctf/.bashrc
|
2015-11-04 02:27:49 +00:00
|
|
|
|
|
|
|
WORKDIR /home/ctf
|
2017-02-16 21:46:25 +00:00
|
|
|
CMD bash -i
|