Skip to content

Commit 60057fa

Browse files
committed
updated Dockerfile
1 parent 3ec46c3 commit 60057fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ RUN go mod download
1313

1414
COPY . .
1515

16-
RUN go build -o scan-exporter . && \
16+
# 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 . && \
1723
strip scan-exporter && \
1824
/usr/local/bin/upx -9 scan-exporter
1925

0 commit comments

Comments
 (0)