mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[ci] Add hardening to go binary build
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ee92cbbb03
commit
438bedc99c
1 changed files with 5 additions and 2 deletions
|
@ -17,8 +17,11 @@ RUN set -ex \
|
|||
npm \
|
||||
&& make frontend \
|
||||
&& go install \
|
||||
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
|
||||
-mod=readonly
|
||||
-trimpath \
|
||||
-buildmode=pie \
|
||||
-mod=readonly \
|
||||
-modcacherw \
|
||||
-ldflags "-X main.version=$(git describe --tags --always || echo dev)"
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
|
Loading…
Reference in a new issue