ovlach_frontend/Dockerfile

14 lines
430 B
Docker
Raw Normal View History

2023-11-26 15:36:39 +00:00
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"]