-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
45 lines (33 loc) · 1.12 KB
/
Dockerfile
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
FROM ubuntu:18.04
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
DEBIAN_FRONTEND=noninteractive apt-get install -y curl ntp git zip htop unzip vim wget python-virtualenv python-dev python-pip && \
apt-get update && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN \
git clone https://github.com/unicorn-engine/unicorn && \
cd unicorn && \
UNICORN_ARCHS="x86" ./make.sh && \
./make.sh install
RUN \
git clone https://github.com/aquynh/capstone && \
cd capstone && \
CAPSTONE_ARCHS="x86" ./make.sh && \
./make.sh install
RUN \
wget https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.11.1.linux-amd64.tar.gz && \
mkdir -p /bineedev/go/src/github.com/carbonblack/binee
ENV HOME /bineedev
ENV PATH "/usr/local/go/bin:${PATH}"
ENV GOPATH "${HOME}/go"
RUN \
go get -u github.com/unicorn-engine/unicorn/bindings/go/unicorn && \
go get -u github.com/kgwinnup/gapstone
ENV TERM=xterm
WORKDIR /bineedev/go/src/github.com/carbonblack/binee
CMD \
bash