-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.dist
62 lines (52 loc) · 2.94 KB
/
Dockerfile.dist
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (C) 2017-2019, Cyberhaven
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
FROM ubuntu:22.04
MAINTAINER Vitaly Chipounov <vitaly@cyberhaven.com>
# Update must come first or they may be random package installation failures
RUN apt-get update
# i386 packages are required by IDA Pro, they are included here for convenience.
# You must provide your own copy of IDA Pro.
RUN dpkg --add-architecture i386 && apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
$(apt-cache depends qemu-system-x86 | grep Depends | \
sed "s/.*ends:\ //" | grep -v '<' | tr '\n' ' ')
# Install python packages
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential python3 python3-dev python3-pip python3-venv \
python3-yaml python3-matplotlib python3-lxml python3-pip \
python-is-python3 python3-setuptools python3-wheel ca-certificates
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo git netcat nano apport psmisc vim p7zip-full unzip \
wget libsvn1 libcurl4 gdb libssl-dev \
libstdc++6:i386 libpixman-1-0 \
libxml2-dev libicu-dev libxslt1-dev libffi-dev \
lsof psmisc libboost-system1.74.0 libboost-serialization1.74.0 libboost-regex1.74.0 \
libmemcached11 libgettextpo0 libelf1 libelf1:i386 \
libpcre3 libpcre3-dev libpcre3:i386 \
liblua5.1-0 liblua5.2-0 libsigc++-2.0-dev jq libpng16-16 \
libc6-dev-i386 time libsdl1.2-dev libmagic1 libprotobuf-dev \
rapidjson-dev libsoci-dev libcapstone-dev
RUN python3 -m pip install --upgrade pip setuptools wheel
# Copy pre-compiled S2E files
COPY s2e /opt/s2e
# Install s2e-env
COPY s2e-env /s2e-env
RUN cd /s2e-env && pip3 install .