forked from un1coin/eris-pm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 890 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
# Pull base image.
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 epm
# set the repo and install epm
ENV REPO $GOPATH/src/github.com/eris-ltd/eris-pm
COPY . $REPO
WORKDIR $REPO/cmd/epm
RUN go build -o /usr/local/bin/epm
RUN chown --recursive $USER:$USER $REPO
#-----------------------------------------------------------------------------
# root dir
# persist data, set user
RUN chown --recursive $USER:$USER /home/$USER
VOLUME /home/$USER/.eris
WORKDIR /home/$USER/.eris
USER $USER
CMD ["epm", "--chain", "chain:46657", "--sign", "keys:4767" ]