From 7f37c7c94c8c2cff3ed723cf6e7597feb6d19435 Mon Sep 17 00:00:00 2001 From: Frederic Minne <frederic.minne@uclouvain.be> Date: Thu, 22 Feb 2024 10:51:36 +0100 Subject: [PATCH] add runtime stage in Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fcb1ed..c6adaff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ -FROM rust:1.73 AS builder +FROM rust:1.76 AS runtime RUN cargo install mdbook mdbook-toc mdbook-mermaid +FROM runtime as builder + WORKDIR /opt/src COPY . . RUN mdbook build FROM nginx:latest -COPY --from=builder /opt/src/book/html /usr/share/nginx/html +COPY --from=builder /opt/src/book/html /usr/share/nginx/html \ No newline at end of file -- GitLab