Skip to content

Commit

Permalink
Remove date flag from docker build step
Browse files Browse the repository at this point in the history
We don't use it anymore as we want reproducable builds.
  • Loading branch information
wjdp committed Apr 10, 2022
1 parent 3cd44ff commit 94e3a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN go mod download

COPY ./ ./
ARG VERSION
RUN CGO_ENABLED=0 go build -installsuffix 'static' -ldflags "-X main.date=`date -u +%Y-%m-%dT%H:%M:%SZ` -X main.version=${VERSION}" -o /app .
RUN CGO_ENABLED=0 go build -installsuffix 'static' -ldflags "-X main.version=${VERSION}" -o /app .

FROM ${TARGET} AS final

Expand Down

0 comments on commit 94e3a1e

Please sign in to comment.