mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
fix: cgo and sqlite build in alpine image closed #28
This commit is contained in:
@@ -20,7 +20,7 @@ mkdir -p ./bin
|
||||
# build demo app
|
||||
for file in pkg/core/*; do
|
||||
app="$(basename $file)";
|
||||
CGO_ENABLED=0 go build -tags prod -o bin/backend "./cmd/$app"
|
||||
go build -tags prod -ldflags '-extldflags "-static"' -o bin/backend "./cmd/$app"
|
||||
# docker image
|
||||
docker buildx build --platform "$_platform" \
|
||||
-f "build/package/$app.Dockerfile" \
|
||||
|
||||
Reference in New Issue
Block a user