mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +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 \
|
npm \
|
||||||
&& make frontend \
|
&& make frontend \
|
||||||
&& go install \
|
&& go install \
|
||||||
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
|
-trimpath \
|
||||||
-mod=readonly
|
-buildmode=pie \
|
||||||
|
-mod=readonly \
|
||||||
|
-modcacherw \
|
||||||
|
-ldflags "-X main.version=$(git describe --tags --always || echo dev)"
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
Loading…
Reference in a new issue