FROM rust:latest AS builder WORKDIR /usr/src/hal COPY . . RUN cargo install --path . FROM debian:bookworm-slim RUN apt-get update && apt-get install -y libpq5 libssl3 && rm -rf /var/lib/apt/lists/* RUN mkdir -pv /srv/hal COPY --from=builder /usr/local/cargo/bin/hal /srv/hal RUN chmod a+x /srv/hal/hal COPY --from=builder /usr/src/hal/config /srv/hal/config COPY --from=builder /usr/src/hal/txt /srv/hal/txt RUN find /srv/hal/ WORKDIR /srv/hal CMD ["./hal", "-e", "development"]