FROM rust:1.74.0-slim-bookworm AS builder COPY . /app WORKDIR /app RUN mkdir ~/.ssh RUN apt-get update && apt-get install -y ssh && rm -rf /var/cache/apt* RUN ssh-keyscan gitlab.nanobyte.cz >> /root/.ssh/known_hosts RUN cargo build --release FROM rust:1.74.0-slim-bookworm as runner RUN mkdir /app COPY --from=builder /app/target/release/ovlach_frontend /app COPY ./templates /app/templates ENTRYPOINT ["/app/ovlach_frontend"]