Files
beau-gosse-du-92/Dockerfile
Adrien 8d6b8fb09c
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
👷 Life is more complicated... make the number of jobs configurable
2024-04-12 23:04:40 +02:00

20 lines
439 B
Docker

FROM rust:latest AS builder
ARG JOBS_NB=${JOBS_NB:-default}
# 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 . .
RUN cargo -j ${JOBS_NB} install dioxus-cli
RUN dx build -r --platform web -- -j ${JOBS_NB}
FROM nginx:mainline-alpine-slim
COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html