ovlach_frontend/Dockerfile
2023-11-26 16:36:39 +01:00

14 lines
430 B
Docker

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"]