mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +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]>
12 lines
263 B
Docker
12 lines
263 B
Docker
FROM golang:1.26.5-alpine AS build
|
|
ENV GOTOOLCHAIN=auto
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -o /opnet-watcher .
|
|
|
|
FROM alpine:3.21
|
|
COPY --from=build /opnet-watcher /usr/local/bin/
|
|
ENTRYPOINT ["opnet-watcher"]
|