File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1.4
22# Use BuildKit for cache mounts (faster CI: DOCKER_BUILDKIT=1)
3- FROM golang:1.25-alpine3.23 AS go-builder
3+ FROM golang:1.25-alpine3.22 AS go-builder
44WORKDIR /authorizer
55
66ARG TARGETPLATFORM
@@ -29,10 +29,10 @@ COPY gqlgen.yml ./
2929RUN --mount=type=cache,target=/go/pkg/mod \
3030 --mount=type=cache,target=/root/.cache/go-build \
3131 mkdir -p build/${GOOS}/${GOARCH} && \
32- go build -trimpath -mod=readonly -tags netgo -ldflags "-w -s -X main .VERSION=$VERSION" -o build/${GOOS}/${GOARCH}/authorizer . && \
32+ go build -trimpath -mod=readonly -tags netgo -ldflags "-w -s -X github.com/authorizerdev/authorizer/internal/constants .VERSION=$VERSION" -o build/${GOOS}/${GOARCH}/authorizer . && \
3333 chmod 755 build/${GOOS}/${GOARCH}/authorizer
3434
35- FROM alpine:3.23.3 AS node-builder
35+ FROM alpine:3.22.0 AS node-builder
3636WORKDIR /authorizer
3737COPY web/app/package*.json web/app/
3838COPY web/dashboard/package*.json web/dashboard/
@@ -46,7 +46,7 @@ COPY web/app web/app
4646COPY web/dashboard web/dashboard
4747RUN cd web/app && npm run build && cd ../dashboard && npm run build
4848
49- FROM alpine:3.23.3
49+ FROM alpine:3.22.0
5050
5151ARG TARGETARCH=amd64
5252
Original file line number Diff line number Diff line change 1414 CGO_ENABLED=0 gox \
1515 -mod=readonly \
1616 -osarch=" linux/amd64 linux/arm64 darwin/amd64 darwin/arm64" \
17- -ldflags=" -w -X main .VERSION=$( VERSION) " \
17+ -ldflags=" -w -X github.com/authorizerdev/authorizer/internal/constants .VERSION=$( VERSION) " \
1818 -output=" ./build/{{.OS}}/{{.Arch}}/$( PROJECT) " \
1919 -tags=" netgo" \
2020 ./...
You can’t perform that action at this time.
0 commit comments