From e8268c7f456103bb8d7f5fc37564644912435abc Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Tue, 30 Jun 2026 16:44:34 +0200 Subject: [PATCH 1/2] [+] bump Go version to 1.26 in Docker image, fixes #786 Also remove hard coded GO111MODULE, GOOS and GOARCH --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c042dd3..dd24d21f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,13 @@ # --build-arg COMMIT=`git show -s --format=%H HEAD` \ # --build-arg VERSION=`git describe --tags --abbrev=0` \ # --build-arg DATE=`git show -s --format=%cI HEAD` . -FROM golang:alpine AS builder +FROM golang:1.26-alpine AS builder ARG COMMIT ARG VERSION ARG DATE -# Set necessary environmet variables needed for our image -ENV GO111MODULE=on \ - CGO_ENABLED=0 \ - GOOS=linux \ - GOARCH=amd64 +# Set necessary environment variables needed for our image +ENV CGO_ENABLED=0 # Move to working directory /build WORKDIR /build From adbb1c7cf2f58487ae2f77089200709855fe15e4 Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Tue, 30 Jun 2026 16:52:13 +0200 Subject: [PATCH 2/2] fix docker warning --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dd24d21f..06af14e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,5 +42,5 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ENTRYPOINT ["/pg_timetable"] # Expose REST API if needed -ENV PGTT_RESTPORT 8008 +ENV PGTT_RESTPORT=8008 EXPOSE 8008