diff --git a/docker-tests/Dockerfile.innernet b/docker-tests/Dockerfile.innernet index fb2ad0b..d601a38 100644 --- a/docker-tests/Dockerfile.innernet +++ b/docker-tests/Dockerfile.innernet @@ -2,7 +2,7 @@ ## Builder #################################################################################################### FROM rust as planner -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app RUN cargo install cargo-chef @@ -10,7 +10,7 @@ COPY . . RUN cargo chef prepare --recipe-path recipe.json FROM rust as cacher -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app RUN cargo install cargo-chef @@ -18,12 +18,13 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json FROM rust as builder -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app COPY . . COPY --from=cacher /app/target target RUN cargo build --release --bin innernet +RUN strip /app/target/release/innernet #################################################################################################### ## Final image diff --git a/docker-tests/Dockerfile.innernet-server b/docker-tests/Dockerfile.innernet-server index ca905a6..d581a54 100644 --- a/docker-tests/Dockerfile.innernet-server +++ b/docker-tests/Dockerfile.innernet-server @@ -2,7 +2,7 @@ ## Builder #################################################################################################### FROM rust as planner -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app RUN cargo install cargo-chef @@ -10,7 +10,7 @@ COPY . . RUN cargo chef prepare --recipe-path recipe.json FROM rust as cacher -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app RUN cargo install cargo-chef @@ -18,12 +18,13 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json FROM rust as builder -RUN apt update && apt install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev +RUN apt-get update && apt-get install -y build-essential musl-tools musl-dev clang libclang-dev libsqlite3-dev RUN update-ca-certificates WORKDIR /app COPY . . COPY --from=cacher /app/target target RUN cargo build --release --bin innernet-server +RUN strip /app/target/release/innernet-server #################################################################################################### ## Final image