diff --git a/Makefile b/Makefile index a065ccb..ccc1cf8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: build-dev build-dev: - npm --prefix ui run build && CGO_ENABLED=0 go build -o ./bin/api + npm --prefix ui run build && CGO_ENABLED=0 go build -ldflags="-s -w" -o ./bin/api .PHONY: test-unit test-unit: diff --git a/scripts/deploy.sh b/scripts/deploy.sh index eb03fb4..05dc2f1 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,7 +5,7 @@ set -euo pipefail npm --prefix=ui ci npm --prefix=ui run build -CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/api +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/api echo "${DOCKER_PASSWORD}" | docker login --username="${DOCKER_USERNAME}" --password-stdin docker buildx build --no-cache --platform="linux/amd64" --push -t "lucasrod96/oss-contribute:${IMAGE_VERSION}" .