forked from iotexproject/iotex-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
18 lines (13 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.11.5-stretch
WORKDIR $GOPATH/src/github.com/iotexproject/iotex-core/
RUN apt-get install -y --no-install-recommends make
COPY . .
RUN mkdir -p $GOPATH/pkg/linux_amd64/github.com/iotexproject/ && \
make clean build && \
cp $GOPATH/src/github.com/iotexproject/iotex-core/bin/server /usr/local/bin/iotex-server && \
cp $GOPATH/src/github.com/iotexproject/iotex-core/bin/actioninjectorv2 /usr/local/bin/iotex-actioninjectorv2 && \
cp $GOPATH/src/github.com/iotexproject/iotex-core/bin/addrgen /usr/local/bin/iotex-addrgen && \
cp $GOPATH/src/github.com/iotexproject/iotex-core/bin/ioctl /usr/local/bin/ioctl && \
mkdir -p /etc/iotex/ && \
rm -rf $GOPATH/src/github.com/iotexproject/iotex-core/
CMD [ "iotex-server"]