ctf-tools/Dockerfile

21 lines
421 B
Docker
Raw Normal View History

2015-11-04 02:27:49 +00:00
from ubuntu:trusty
maintainer yans@yancomm.net
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
2015-11-04 02:27:49 +00:00
WORKDIR /home/ctf
ENTRYPOINT bash -i