2 changed files with 16 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
services: |
|||
go-builder: |
|||
image: golang:1.25.5-alpine |
|||
volumes: |
|||
- $PWD:/app |
|||
entrypoint: ["/bin/sh", "-c", "/app/entrypoint.sh"] |
|||
environment: |
|||
- GOOS=linux |
|||
- GOARCH=386 |
|||
- CGO_ENABLED=0 |
|||
@ -0,0 +1,6 @@ |
|||
#!/bin/sh |
|||
echo "build $GOOS-$GOARCH" |
|||
cd /app |
|||
GOOS=$GOOS GOARCH=$GOARCH go build -ldflags "-s -w -checklinkname=0" -trimpath \ |
|||
-o "dist/client-${GOOS}-${GOARCH}${EXT}" \ |
|||
./client |
|||
Loading…
Reference in new issue