diff --git a/Dockerfile b/Dockerfile index 078c184..8d31add 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,20 @@ FROM rust:latest AS builder +# Disable incremental compilation +# Cf. https://doc.rust-lang.org/cargo/reference/profiles.html#incremental +ARG CARGO_INCREMENTAL=0 + 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 +RUN cargo install -j 1 dioxus-cli +RUN dx build -r --platform web -- -j 1 FROM nginx:mainline-alpine-slim