You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
697 B

# ORLY relay Dockerfile for negentropy interop testing
FROM golang:1.24-alpine AS builder
RUN apk add --no-cache git make
WORKDIR /build
COPY . .
# Build orly relay binary (use vendored deps for local replace directives)
RUN GOTOOLCHAIN=auto CGO_ENABLED=0 go build -mod=vendor -o orly .
# Runtime image
FROM alpine:3.19
RUN apk add --no-cache ca-certificates curl jq
WORKDIR /app
COPY --from=builder /build/orly /app/
RUN mkdir -p /data
EXPOSE 3334
ENV ORLY_PORT=3334
ENV ORLY_DATA_DIR=/data
ENV ORLY_LOG_LEVEL=info
ENV ORLY_NEGENTROPY_ENABLED=true
HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:3334 || exit 1
CMD ["/app/orly"]