fixed Dockerfile

This commit is contained in:
2023-08-13 18:58:27 +02:00
parent c1ff540cc1
commit 9484906dd8

View File

@ -1,19 +1,19 @@
#!/bin/bash #!/bin/bash
# Used in Docker build to set platform dependent variables # Used in Docker build to set platform dependent variables
case $TARGETARCH in case $TARGETARCH in
"amd64") "amd64")
echo "x86_64-unknown-linux-gnu" > /.platform echo "x86_64-unknown-linux-gnu" > /.platform
echo "" > /.compiler echo "" > /.compiler
;; ;;
"arm64") "arm64")
echo "aarch64-unknown-linux-gnu" > /.platform echo "aarch64-unknown-linux-gnu" > /.platform
echo "gcc-aarch64-linux-gnu" > /.compiler echo "gcc-aarch64-linux-gnu" > /.compiler
;; ;;
"arm") "arm")
echo "armv7-unknown-linux-gnueabihf" > /.platform echo "armv7-unknown-linux-gnueabihf" > /.platform
echo "gcc-arm-linux-gnueabihf" > /.compiler echo "gcc-arm-linux-gnueabihf" > /.compiler
;; ;;
esac esac