You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Dockerfile
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
FROM golang:latest AS builder
2
+
ARG GIT_REVISION
2
3
WORKDIR /app
3
4
COPY go.sum .
4
5
COPY go.mod .
5
6
RUN go mod download
6
7
COPY . .
7
-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o server cmd/web/web.go
8
+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/go-franky/plain_http/version.GitRevision=$GIT_REVISION" -o server cmd/web/web.go
0 commit comments