commit bff72b2cd2c9612df58a76566a5c1f6b67ca5124 Author: oxypomme Date: Mon Oct 9 14:40:28 2023 +0200 feat(ubuntu20-04): added build files for rio diff --git a/ubuntu20-04/build-rio.dockerfile b/ubuntu20-04/build-rio.dockerfile new file mode 100644 index 0000000..2003437 --- /dev/null +++ b/ubuntu20-04/build-rio.dockerfile @@ -0,0 +1,23 @@ +# Rio is a terminal writted in Rust +FROM ubuntu:20.04 + +WORKDIR /build/rio + +ENV PATH="/root/.cargo/bin:${PATH}" +ENV DEBIAN_FRONTEND=noninteractive + +# Install deps +RUN apt update -y \ + && apt upgrade -y \ + && apt install -y git curl cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 +# Install Rust +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN rustup override set stable \ + && rustup update stable +# Clone repo +RUN git clone https://github.com/raphamorim/rio.git /build/rio + +# Build +RUN cargo build --release --no-default-features --features=x11 + +CMD ["sleep", "infinity"] \ No newline at end of file diff --git a/ubuntu20-04/build-rio.sh b/ubuntu20-04/build-rio.sh new file mode 100755 index 0000000..49b8696 --- /dev/null +++ b/ubuntu20-04/build-rio.sh @@ -0,0 +1,4 @@ +docker build -f build-rio.dockerfile --no-cache -t build-rio:latest . +docker run -d --name build-rio build-rio:latest +docker cp build-rio:/build/rio/target/release/rio ~/bin/rio +docker remove -f build-rio