diff --git a/Dockerfile b/.github/Dockerfile similarity index 75% rename from Dockerfile rename to .github/Dockerfile index 8ff870b444..a865ab5a9c 100644 --- a/Dockerfile +++ b/.github/Dockerfile @@ -4,4 +4,8 @@ FROM ekidd/rust-musl-builder # assumes a UID of 1000 ADD --chown=rust:rust . ./ +RUN sudo chown rust -R /opt/rust + +RUN rustup target add x86_64-unknown-linux-musl + CMD RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" cargo build --release --features=auth diff --git a/.github/workflows/static_build.yml b/.github/workflows/static_build.yml index e9e7911857..efd895aaee 100644 --- a/.github/workflows/static_build.yml +++ b/.github/workflows/static_build.yml @@ -15,7 +15,7 @@ jobs: - name: Build-musl run: | echo "Building static binaries using ekidd/rust-musl-builder" - docker build -t fastn-build-image . + docker build -t fastn-build-image .github/ docker run --name fastn-build fastn-build-image mkdir -p out docker cp fastn-build:/home/rust/src/target/x86_64-unknown-linux-musl/release/fastn out/