Skip to content
Extraits de code Groupes Projets
Valider 7f37c7c9 rédigé par Frédéric Minne's avatar Frédéric Minne
Parcourir les fichiers

add runtime stage in Dockerfile

parent 10b0c235
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter