mirror of
https://github.com/luxfi/treasury.git
synced 2026-10-30 15:15:00 +00:00
Currency bump: golang builder images -> 1.26.5 (latest stable). Adds ENV GOTOOLCHAIN=auto to each Go builder stage. The official golang images set GOTOOLCHAIN=local, so a builder image older than the module's go directive is a hard mid-build failure. The pin stays the hermetic fast path; auto is the safety net for the next go.mod bump. No go.mod go directive was changed. Builder images move; directives stay. Co-authored-by: Hanzo Dev <[email protected]>
14 lines
374 B
Docker
14 lines
374 B
Docker
FROM golang:1.26.5-alpine AS builder
|
|
ENV GOTOOLCHAIN=auto
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o treasuryd ./cmd/treasuryd/
|
|
|
|
FROM alpine:3.21
|
|
RUN apk add --no-cache ca-certificates
|
|
COPY --from=builder /app/treasuryd /usr/local/bin/treasuryd
|
|
EXPOSE 8091
|
|
ENTRYPOINT ["treasuryd"]
|