1
0
mirror of https://github.com/j178/prek.git synced 2026-06-19 17:17:53 +02:00

Fix docker build command (#1395)

This commit is contained in:
Jo
2026-01-18 21:09:35 +08:00
committed by GitHub
parent 300cae9d55
commit 6f53870934
+1 -1
View File
@@ -39,7 +39,7 @@ RUN case "${TARGETPLATFORM}" in \
"linux/arm64") export JEMALLOC_SYS_WITH_LG_PAGE=16;; \
esac && \
cargo zigbuild --bin prek --profile dist --target $(cat rust_target.txt)
RUN cp target/$(cat rust_target.txt)/release/prek /prek
RUN cp target/$(cat rust_target.txt)/dist/prek /prek
# TODO: Optimize binary size, with a version that also works when cross compiling
# RUN strip --strip-all /prek