diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 27ef0e3..4d94818 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,9 +1,10 @@ -FROM mcr.microsoft.com/vscode/devcontainers/rust +FROM mcr.microsoft.com/vscode/devcontainers/rust:0.202.9-bullseye RUN sudo apt-get update -y \ && sudo apt-get upgrade -y \ && sudo apt-get install -y zip ltrace +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly RUN rustup update \ && rustup target add aarch64-unknown-linux-gnu diff --git a/amzn/Dockerfile b/amzn/Dockerfile index 553aaef..723d81c 100644 --- a/amzn/Dockerfile +++ b/amzn/Dockerfile @@ -1,6 +1,6 @@ FROM public.ecr.aws/sam/build-nodejs18.x -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly ENV PATH="~/.cargo/bin:${PATH}" RUN ~/.cargo/bin/rustup update \ diff --git a/amzn/Dockerfile-arm64 b/amzn/Dockerfile-arm64 index 2aca10e..9936aae 100644 --- a/amzn/Dockerfile-arm64 +++ b/amzn/Dockerfile-arm64 @@ -1,6 +1,6 @@ FROM public.ecr.aws/sam/build-nodejs18.x:latest-arm64 -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly ENV PATH="~/.cargo/bin:${PATH}" RUN ~/.cargo/bin/rustup update \ diff --git a/bin/build-arch b/bin/build-arch index 795e16f..f0486ef 100755 --- a/bin/build-arch +++ b/bin/build-arch @@ -13,7 +13,8 @@ mkdir -p ./build ./target cargo build \ --release \ - --target "${CRYPTEIA_BUILD_TARGET}" + --target "${CRYPTEIA_BUILD_TARGET}" \ + -Z sparse-registry cp "./target/${CRYPTEIA_BUILD_TARGET}/release/crypteia" "./build/${BIN}" cp ./target/${CRYPTEIA_BUILD_TARGET}/release/libcrypteia.so "./build/${LIB}" diff --git a/debian/Dockerfile-arm64 b/debian/Dockerfile-arm64 index 744f480..dd7a4b1 100644 --- a/debian/Dockerfile-arm64 +++ b/debian/Dockerfile-arm64 @@ -4,7 +4,7 @@ RUN apt update && apt-get install -y python3-pip RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly ENV PATH="/root/.cargo/bin:${PATH}" RUN /root/.cargo/bin/rustup update \