Files
LACT/pkg/docker/Dockerfile
T
Ilya Zlobintsev e5a3eb1509 chore: update to rust 2024 edition (#889)
* chore: bump rust edition to 2024

* chore: another chunk of clippy fixes

* chore: fix warning in bindings

* chore: restructure awkward unsafe blocks

* chore: reformat

* chore: clippy fix

* chore: bump rust release in docker build
2026-01-31 23:43:43 +02:00

23 lines
652 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
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 && rm -rf /var/cache
COPY --from=builder /usr/local/bin/lact /usr/local/bin/lact
CMD ["lact", "daemon"]