Skip to content
Snippets Groups Projects
Commit 2c7da42f authored by Lennart Kramer's avatar Lennart Kramer
Browse files

use CGO_ENABLED=0 for static build

since the server executable is built outside of the docker image
parent 7e1b0e69
Branches
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# This script compiles the web server application. # This script compiles the web server application.
set -e set -e
export GOBIN="$(realpath bin)" export GOBIN="$(realpath bin)" CGO_ENABLED=0
cd ./src/web cd ./src/web
go mod download all go mod download all
go install web go install web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment