👷 Disable incremental compilation and use a single core to reduce the RAM consumption
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
This commit is contained in:
10
Dockerfile
10
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
|
||||
|
Reference in New Issue
Block a user