forked from benjaminbollen/eris-cm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (25 loc) · 945 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
FROM quay.io/eris/base
MAINTAINER Eris Industries <[email protected]>
#-----------------------------------------------------------------------------
# dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgmp3-dev jq && \
rm -rf /var/lib/apt/lists/*
#-----------------------------------------------------------------------------
# install eris-cm
ENV REPO $GOPATH/src/github.com/eris-ltd/eris-cm
COPY . $REPO
WORKDIR $REPO/cmd/eris-cm
RUN go build -o /usr/local/bin/eris-cm
RUN chown --recursive $USER:$USER $REPO
# ----------------------------------------------------------------------------
# mintgen
RUN go get github.com/eris-ltd/mint-client/mintgen
#-----------------------------------------------------------------------------
# persist data, set user
RUN chown --recursive $USER:$USER /home/$USER
VOLUME /home/$USER/.eris
WORKDIR /home/$USER/.eris
USER $USER
ENTRYPOINT ["eris-cm" ]