From ba21816f757546e4613c918d51f8226cd83e451c Mon Sep 17 00:00:00 2001 From: FantasyPvP <80643031+FantasyPvP@users.noreply.github.com> Date: Wed, 29 Nov 2023 23:42:23 +0000 Subject: [PATCH] Create Dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a3d0ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:latest + +RUN apt-get update && apt-get install -y curl +RUN apt-get install build-essential -y + +RUN mkdir /src +WORKDIR /src + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" + +RUN rustup toolchain install nightly +RUN rustup install nightly-2023-08-18 +RUN rustup override set nightly +RUN rustup default nightly +RUN rustup component add llvm-tools-preview --toolchain nightly-x86_64-unknown-linux-gnu +RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu +RUN cargo install bootimage + +COPY . . + +RUN cargo update -p proc-macro2