-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dockerfile
38 lines (27 loc) · 981 Bytes
/
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
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 && \
UNICORN_ARCHS="x86" ./make.sh install
RUN \
wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.14.4.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
ENV TERM=xterm
WORKDIR /bineedev/go/src/github.com/carbonblack/binee
CMD \
bash