generated from VLADIMIR/template
update building
This commit is contained in:
@@ -12,16 +12,19 @@ generate:
|
||||
run:
|
||||
go run ./cmd/evening_detective/main.go
|
||||
|
||||
build-builder:
|
||||
docker build -f Dockerfile.builder -t my-go-builder .
|
||||
|
||||
build-macos:
|
||||
rm -rf bin
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o bin/evening_detective_macos_arm64 cmd/evening_detective/main.go
|
||||
|
||||
build-linux:
|
||||
rm -rf bin
|
||||
docker run --rm -v "$$PWD":/app -w /app golang:1.26-alpine sh -c \
|
||||
"apk add --no-cache gcc musl-dev && \
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -o bin/evening_detective_linux_arm64 cmd/evening_detective/main.go"
|
||||
|
||||
docker run --rm \
|
||||
-v "$$PWD":/app \
|
||||
-w /app \
|
||||
my-go-builder sh -c \
|
||||
"CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -o bin/evening_detective_linux_arm64 cmd/evening_detective/main.go"
|
||||
|
||||
text_to_story:
|
||||
rm -f ./cmd/text_to_story/story.json
|
||||
|
||||
Reference in New Issue
Block a user