update build doc & dockerfiles

This commit is contained in:
nkanaev
2025-03-21 00:38:32 +00:00
parent 572e489db6
commit a32361fab2
3 changed files with 26 additions and 20 deletions

View File

@@ -27,18 +27,12 @@ RUN env \
CC=aarch64-linux-gnu-gcc \
CGO_ENABLED=1 \
GOOS=linux GOARCH=arm64 \
go build \
-tags "sqlite_foreign_keys linux" \
-ldflags="-s -w" \
-o /root/out/yarr.arm64 ./cmd/yarr
make host && mv out/yarr /root/out/yarr.arm64
RUN env \
CC=arm-linux-gnueabihf-gcc \
CGO_ENABLED=1 \
GOOS=linux GOARCH=arm GOARM=7 \
go build \
-tags "sqlite_foreign_keys linux" \
-ldflags="-s -w" \
-o /root/out/yarr.arm7 ./cmd/yarr
make host && mv out/yarr /root/out/yarr.armv7
CMD ["/bin/bash"]