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"]