feat: self containerisation

Build oxker images, for x86, arm64v8, and armv6, and publish to Docker Hub
This commit is contained in:
Jack Wills
2022-09-05 22:05:24 +00:00
parent ed80a58fee
commit c2910aaef3
7 changed files with 120 additions and 48 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Used in Docker build to set platform dependent variables
case $TARGETARCH in
"amd64")
echo "x86_64-unknown-linux-musl" > /.platform
echo "" > /.compiler
;;
"arm64")
echo "aarch64-unknown-linux-musl" > /.platform
echo "gcc-aarch64-linux-gnu" > /.compiler
;;
"arm")
echo "arm-unknown-linux-musleabihf" > /.platform
echo "gcc-arm-linux-gnueabihf" > /.compiler
;;
esac