Unbound Release / Check Preconditions (push) Successful in 33s
Unbound Release / Create Tag (push) Skipped
Unbound Release / Create Release (push) Successful in 29s
auth0mock / build (push) Skipped
Unbound Release / Generate Changelog and Handle PR (push) Successful in 44s
Release / release (push) Successful in 1m39s
24 lines
553 B
Docker
24 lines
553 B
Docker
FROM golang:1.26@sha256:0d1d3a794be25f809dd2cb3160d8c73276c4056a9f8242a138e908ddeee7b6b6 AS build
|
|
|
|
WORKDIR /build
|
|
ENV CGO_ENABLED=0
|
|
ENV GOEXPERIMENT=jsonv2
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN go build -ldflags="-s -w" -o /release/service ./cmd/service
|
|
|
|
FROM gcr.io/distroless/static-debian12@sha256:6447365a6337c3732f412d1b74357b30a633831955b2bc45552b0086be907687
|
|
|
|
ENV TZ=Europe/Stockholm
|
|
ENV AUDIENCE="https://shiny.unbound.se"
|
|
|
|
COPY --from=build /release/service /service
|
|
COPY public /public
|
|
|
|
EXPOSE 3333
|
|
|
|
ENTRYPOINT ["/service"]
|