From e59b3f9d0618166c8fcf5064ac5e08a64fd6aaf7 Mon Sep 17 00:00:00 2001 From: yuobrezkov Date: Mon, 13 Jan 2025 13:24:23 +0300 Subject: [PATCH] Added Dockerfile --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee3f295 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM ubuntu:latest + +USER root + +RUN apt update && apt install -y \ + curl \ + build-essential \ + libssl-dev \ + pkg-config \ + libudev-dev \ + procps \ + && rm -rf /var/lib/apt/lists/* + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +ENV PATH="/root/.cargo/bin:${PATH}" + +WORKDIR /usr/src/kii/ + +COPY . ./ + +RUN chmod +x noxis-rs/temp-process + +RUN rustup target add riscv64gc-unknown-linux-gnu && rustup target add x86_64-unknown-linux-gnu + +RUN cargo unibuild + +ENTRYPOINT ["cargo", "test"]