We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec46c3 commit 60057faCopy full SHA for 60057fa
Dockerfile
@@ -13,7 +13,13 @@ RUN go mod download
13
14
COPY . .
15
16
-RUN go build -o scan-exporter . && \
+# RUN go build -o scan-exporter . && \
17
+# strip scan-exporter && \
18
+# /usr/local/bin/upx -9 scan-exporter
19
+
20
+RUN go build \
21
+ -ldflags "-X main.Version=${version} -X main.BuildDate=${builddate}" \
22
+ -o scan-exporter . && \
23
strip scan-exporter && \
24
/usr/local/bin/upx -9 scan-exporter
25
0 commit comments