-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.pwndbg
36 lines (32 loc) · 1.12 KB
/
Dockerfile.pwndbg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:xenial
LABEL maintainer "https://github.com/blacktop"
ENV TERM screen-256color
ENV PYTHONIOENCODING UTF-8
ENV GDB_VERSION 7.11.1-0ubuntu1~16.5
RUN buildDeps='ca-certificates git build-essential wget cmake pkg-config' \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -yq $buildDeps \
sudo \
ltrace \
strace \
python3 \
locales \
binutils \
libc6:i386 \
libstdc++6:i386 \
gdb=$GDB_VERSION \
gdb-multiarch=$GDB_VERSION \
&& echo "===> Fix locale..." \
&& locale-gen en_US.UTF-8 \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& echo "===> Install pwndbg..." \
&& cd /tmp \
&& git clone https://github.com/pwndbg/pwndbg \
&& cd pwndbg \
&& ./setup.sh \
&& echo "===> Clean up unnecessary files..." \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ENTRYPOINT ["bash"]