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