holonet
- 19 commits
- 1 branch
- 0 tags
- updated
dockerfile
565 B · 25 lines
1# ---- build ----2FROM golang:1.27.1-alpine AS build34WORKDIR /src56# dependencies first: editing Go source won't re-run this step7COPY go.mod go.sum ./8RUN go mod download910COPY . .11RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/holonet ./cmd/holonet1213# ---- runtime ----14FROM alpine:3.241516# ca-certificates for outbound TLS, curl for poking at the service from inside17RUN apk add --no-cache ca-certificates curl \18 && adduser -D -u 65532 holonet1920COPY --from=build /out/holonet /usr/local/bin/holonet2122USER holonet23EXPOSE 74322425ENTRYPOINT ["holonet"]