Skip to content

Commit b649961

Browse files
Dockerfile for xenial
1 parent 823c080 commit b649961

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Dockerfile.xenial

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from ubuntu:xenial
2+
3+
4+
RUN apt-get update && apt-get install -y build-essential libtool g++ gcc \
5+
texinfo curl wget automake autoconf python python-dev git subversion \
6+
unzip virtualenvwrapper sudo
7+
8+
RUN useradd -m ctf
9+
COPY .git /home/ctf/tools/.git
10+
RUN chown -R ctf.ctf /home/ctf/tools
11+
12+
RUN echo "ctf ALL=NOPASSWD: ALL" > /etc/sudoers.d/ctf
13+
RUN apt-get update
14+
RUN apt-get -y install git virtualenvwrapper
15+
16+
USER ctf
17+
18+
WORKDIR /home/ctf/tools
19+
RUN git checkout .
20+
RUN bin/manage-tools -s setup
21+
RUN bin/ctf-tools-pip install appdirs
22+
RUN echo "workon ctftools" >> /home/ctf/.bashrc
23+
24+
WORKDIR /home/ctf
25+
CMD bash -i

0 commit comments

Comments
 (0)