Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Loading