👷 Disable incremental compilation and use a single core to reduce the RAM consumption
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2024-04-12 20:31:14 +02:00
parent 7b755d4a97
commit 357b618262

View File

@@ -1,18 +1,20 @@
FROM rust:latest AS builder 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 WORKDIR /usr/src/beau-gosse-du-92
COPY ./fonts ./fonts COPY ./fonts ./fonts
COPY ./images ./images COPY ./images ./images
COPY ./Dioxus.toml . COPY ./Dioxus.toml .
COPY Cargo.* . COPY Cargo.* .
COPY ./build.rs . COPY ./build.rs .
COPY ./src ./src COPY ./src ./src
RUN cargo install dioxus-cli RUN cargo install -j 1 dioxus-cli
RUN dx build -r --platform web RUN dx build -r --platform web -- -j 1
FROM nginx:mainline-alpine-slim FROM nginx:mainline-alpine-slim