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
26 lines (17 loc) · 701 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (17 loc) · 701 Bytes
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
FROM golang:1.14-alpine as build
WORKDIR apps/iotex-core
RUN apk add --no-cache make gcc musl-dev linux-headers git
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN mkdir -p $GOPATH/pkg/linux_amd64/github.com/iotexproject/ && \
make clean build-all
FROM alpine:latest
RUN apk add --no-cache ca-certificates
RUN mkdir -p /etc/iotex/
COPY --from=build /go/apps/iotex-core/bin/server /usr/local/bin/iotex-server
COPY --from=build /go/apps/iotex-core/bin/actioninjectorv2 /usr/local/bin/iotex-actioninjectorv2
COPY --from=build /go/apps/iotex-core/bin/addrgen /usr/local/bin/iotex-addrgen
COPY --from=build /go/apps/iotex-core/bin/ioctl /usr/local/bin/ioctl
CMD [ "iotex-server"]