feat(ubuntu20-04): added build files for rio
This commit is contained in:
23
ubuntu20-04/build-rio.dockerfile
Normal file
23
ubuntu20-04/build-rio.dockerfile
Normal file
@@ -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"]
|
||||
Reference in New Issue
Block a user