Added Dockerfile

master
yuobrezkov 2025-01-13 13:24:23 +03:00
parent aaa3459920
commit e59b3f9d06
1 changed files with 28 additions and 0 deletions

28
Dockerfile Normal file
View File

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