diff --git a/Dockerfile b/Dockerfile index 1c042dd3..06af14e5 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 @@ -45,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