mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +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
|
# build demo app
|
||||||
for file in pkg/core/*; do
|
for file in pkg/core/*; do
|
||||||
app="$(basename $file)";
|
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 image
|
||||||
docker buildx build --platform "$_platform" \
|
docker buildx build --platform "$_platform" \
|
||||||
-f "build/package/$app.Dockerfile" \
|
-f "build/package/$app.Dockerfile" \
|
||||||
|
|||||||
Reference in New Issue
Block a user