Files
LACT/pkg/docker/Dockerfile
T
Ilya Zlobintsev e2caa24ca8 feat: add displays info (#1052)
* test

* feat: dp info on amd

* chore: add other display types

* feat: use libdisplay-info, add screen size

* feat: add GUI

* feat: WIP nvidia

* feat: reuse display handle

* chore: clippy fixes

* chore: cleanup

* chore: make display-info an optional feature, add build dependency

* fix: ci

* fix ui imports

* fix: add new dependency to flatpak

* fix: add hwdata flatpak module
2026-06-19 22:22:03 +03:00

23 lines
689 B
Docker

FROM rust:1.93-trixie AS builder
WORKDIR /app
RUN apt update -y && apt install -y build-essential clang libdrm-dev pkg-config ocl-icd-opencl-dev libdisplay-info-dev
COPY rust-toolchain.toml /app
RUN cargo --version
COPY --exclude=target* . /app
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/app/target \
make build-release-headless && cp ./target/release/lact /usr/local/bin/lact
FROM debian:trixie-slim
RUN apt update -y && apt install -y libdrm-amdgpu1 libdrm-radeon1 libdrm-intel1 libdrm2 hwdata vulkan-tools libdisplay-info2 && rm -rf /var/cache
COPY --from=builder /usr/local/bin/lact /usr/local/bin/lact
CMD ["lact", "daemon"]