-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (29 loc) · 1.01 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
FROM ubuntu:16.04
LABEL maintainer="Maxwell Koo <mjkoo90@gmail.com>"
RUN set -x && \
apt-get update && \
apt-get -y install software-properties-common && \
apt-add-repository -y ppa:longsleep/golang-backports && \
apt-add-repository -y ppa:ethereum/ethereum && \
apt-get update && \
apt-get -y install \
git \
golang-go \
solc && \
apt-get -y purge software-properties-common && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
RUN mkdir -p $GOPATH/src/github.com/inn4science/perigord/
ADD . $GOPATH/src/github.com/inn4science/perigord/
RUN set -x && \
go get -u github.com/ethereum/go-ethereum && \
cd $GOPATH/src/github.com/ethereum/go-ethereum/cmd/abigen && \
go install && \
go get -u github.com/jteeuwen/go-bindata/... && \
(go get github.com/inn4science/perigord/... || true) && \
cd $GOPATH/src/github.com/inn4science/perigord && \
go generate && \
cd perigord && \
go install