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: build/Dockerfile
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ RUN go mod tidy
9
9
10
10
COPY ./ ./
11
11
12
-
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/main.go
12
+
ARG VERSION
13
+
ARG BUILDTIME
14
+
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X 'ctf01d/internal/handler.version=${VERSION}' -X ctf01d/internal/handler.buildTime=${BUILDTIME}" -o server cmd/main.go
0 commit comments