mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-13 14:32:34 +00:00
23 lines
499 B
Docker
23 lines
499 B
Docker
|
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
|
||
|
|
||
|
WORKDIR /home/ctf
|
||
|
RUN bash -c "source /etc/bash_completion.d/virtualenvwrapper && mkvirtualenv ctf"
|
||
|
RUN echo "workon ctf" >> /home/ctf/.bashrc
|
||
|
|
||
|
ENTRYPOINT bash -i
|