From 77fa0c5fd56dbe524e14c93c6cfd4b68d8042a69 Mon Sep 17 00:00:00 2001 From: Adrien Date: Thu, 11 Apr 2024 08:32:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Add=20the=20Dockerfile=20for=20t?= =?UTF-8?q?he=20web=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..078c184 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM rust:latest AS builder + +WORKDIR /usr/src/beau-gosse-du-92 + +COPY ./fonts ./fonts +COPY ./images ./images + + +COPY ./Dioxus.toml . +COPY Cargo.* . +COPY ./build.rs . +COPY ./src ./src + +RUN cargo install dioxus-cli +RUN dx build -r --platform web + + +FROM nginx:mainline-alpine-slim + +COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html