mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
e81b3f7638
Some container engines such as podman have started to prompt the user to explicitly state (thus sometimes causing service scripts on systemd) to fail for lack of mentioning what container image hub is used. This change declares the hub to be docker.io, thus removing the prompt on systems that use podman.
21 lines
482 B
Docker
21 lines
482 B
Docker
FROM docker.io/library/golang:1.16-alpine3.13 as builder
|
|
|
|
RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++
|
|
|
|
WORKDIR /app
|
|
ADD . .
|
|
|
|
RUN make all
|
|
|
|
FROM docker.io/library/alpine:3.13
|
|
|
|
RUN mkdir -p /var/lib/erigon
|
|
VOLUME /var/lib/erigon
|
|
|
|
RUN apk add --no-cache ca-certificates libgcc libstdc++ tzdata
|
|
COPY --from=builder /app/build/bin/* /usr/local/bin/
|
|
|
|
WORKDIR /var/lib/erigon
|
|
|
|
EXPOSE 8545 8546 30303 30303/udp 30304 30304/udp 8080 9090 6060
|