-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 856 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
27
# Use Alpine Linux
FROM golang:1.10-alpine as builder
# Install basic dependencies
RUN apk update
RUN apk add --no-cache wget
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
# Add glibc dependency as previous to 1.6 Geth needs it in order to compile and work properly
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
RUN apk add --no-cache make gcc musl-dev linux-headers git glibc-2.28-r0.apk
# Fetch gath source and build it
RUN git clone https://github.com/atheioschain/go-atheios go-atheios/
RUN cd go-atheios && make gath
# Pull gath into another container
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go/go-atheios/build/bin/gath /usr/local/bin/
# Expose ports
EXPOSE 8696 8696
# Entry point
ENTRYPOINT ["gath"]