mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-04 18:29:26 +00:00
19 lines
401 B
Docker
19 lines
401 B
Docker
FROM fedora
|
|
|
|
RUN dnf -y install which sudo git redhat-lsb
|
|
|
|
RUN useradd -m 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
|
|
USER ctf
|
|
|
|
WORKDIR /home/ctf/tools
|
|
RUN git checkout .
|
|
RUN bin/manage-tools -s setup
|
|
RUN bin/ctf-tools-pip install appdirs
|
|
RUN echo "workon ctftools" >> /home/ctf/.bashrc
|
|
|
|
WORKDIR /home/ctf
|
|
CMD bash -i
|