diff options
| author | 2024-04-26 10:40:29 +0200 | |
|---|---|---|
| committer | 2024-04-26 10:40:29 +0200 | |
| commit | 3a369d834ad33506c556941327882b556bc9383c (patch) | |
| tree | 7108cab24433799c0ea5787db9534d4b3cafb03d /Dockerfile | |
| parent | [chore] Settings refactor 2: the re-refactoring-ing (#2866) (diff) | |
| download | gotosocial-3a369d834ad33506c556941327882b556bc9383c.tar.xz | |
[chore] Upgrade our Go version to 1.22 (#2862)
* [chore] Upgrade our Go version to 1.22
With Go 1.22 having been released at the start of February, it's now
been a few months. No major issues have shown up, and the two point
release since then have primarily been security fixes plus some general
bug fixing.
This sets the required Go version to 1.22, as there's nothing in 1.22.1
or 1.22.2 that we would explicitly require. It sets the toolchain to the
latest point release, to ensure we pick up any fixes from there when
building releases etc.
* [chore] Update CI to Go 1.22
* [chore] Update golangci-lint to 1.25.7
Newer version should know about Go 1.22 and run fine.
* [chore] Update Docker container to Go 1.22
* [chore] Update Dockerfile to newer Alpine version
* sign drone.yml
* add missing license header
---------
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index 8cf8ee3cf..2b89a8fe4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile reference: https://docs.docker.com/engine/reference/builder/ # stage 1: generate up-to-date swagger.yaml to put in the final container -FROM --platform=${BUILDPLATFORM} golang:1.21-alpine AS swagger +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine AS swagger RUN \ ### Installs goswagger for building swagger definitions inside this container @@ -28,7 +28,7 @@ RUN yarn --cwd ./web/source install && \ rm -rf ./web/source # stage 3: build the executor container -FROM --platform=${TARGETPLATFORM} alpine:3.17.2 as executor +FROM --platform=${TARGETPLATFORM} alpine:3.19.1 as executor # switch to non-root user:group for GtS USER 1000:1000 |
