faraday/Dockerfile
bitromortac 90fd2477c1
build: bump Go version to 1.25.10
Update the Go toolchain version across CI, the Dockerfiles and the go.mod
go directives from 1.25.5 to 1.25.10.
2026-06-12 11:13:04 +02:00

34 lines
898 B
Docker

FROM golang:1.25.10-alpine as builder
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
# queries required to connect to linked containers succeed.
ENV GODEBUG netdns=cgo
ADD . /go/src/github.com/lightninglabs/faraday
# Install dependencies and build the binaries.
RUN apk add --no-cache --update alpine-sdk \
git \
make \
gcc \
&& cd /go/src/github.com/lightninglabs/faraday \
&& make \
&& make install
# Start a new, final image.
FROM alpine as final
# Add bash and ca-certs, for quality of life and SSL-related reasons.
RUN apk --no-cache add \
bash \
ca-certificates
# Copy the binaries from the builder image.
COPY --from=builder /go/bin/faraday /bin/
COPY --from=builder /go/bin/frcli /bin/
# Expose faraday ports (rpc).
EXPOSE 8465
# Specify the start command and entrypoint as the faraday daemon.
ENTRYPOINT ["faraday"]