Files
search-go/Dockerfile
Nils GorollandJavad Rajabzadeh 0676639154 chore: Bump golang-jwt to v5 and, consequently, the minimum go version to 1.21
In a project using this module it was noticed that it was the (only)
reason to still also include jwt/v4.

JWT usage in this module seems rather limited, so regressions seem
unlikely.

Based on review feedback, also bump the newest go version for tests to
1.25

`git config --global --add safe.directory /home/package` is added to the
Dockerfile to avoid VCS stamping failures.
2026-01-23 16:47:31 +00:00

14 lines
272 B
Docker

FROM golang:1.21-bookworm
WORKDIR /home/package
RUN git config --global --add safe.directory /home/package
COPY go.mod .
COPY go.sum .
COPY --from=golangci/golangci-lint:v2.3.0 /usr/bin/golangci-lint /usr/local/bin/golangci-lint
RUN go mod download
RUN go mod verify