From e70648571fd7e95e4e2a1ec1f459000bf45aafab Mon Sep 17 00:00:00 2001 From: Thomas Eppers Date: Thu, 2 Mar 2023 17:40:02 +0100 Subject: [PATCH] added Dockerfile --- docker/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..ae07762 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,25 @@ +FROM debian:buster-slim + +RUN apt-get update && apt-get install -y curl build-essential + +# Install rustup +ENV RUSTUP_HOME=/opt/rustup +ENV CARGO_HOME=/opt/cargo +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="${PATH}:/opt/cargo/bin" + +ENV RUST_TOOLCHAIN="stable" + +RUN rustup toolchain install "${RUST_TOOLCHAIN}" +RUN rustup default "${RUST_TOOLCHAIN}" + +RUN rustup component add clippy +RUN rustup component add rustfmt + +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - +RUN apt-get install -y software-properties-common apt-transport-https ca-certificates curl gnupg2 +RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" +RUN apt-get update +RUN apt-get install -y docker-ce docker-ce-cli containerd.io + +RUN cargo install --git="https://github.com/cross-rs/cross.git" --branch="main" cross