Files
beau-gosse-du-92/Dockerfile
Adrien 28aa250f58
Some checks failed
ci/woodpecker/pr/validate Pipeline failed
💚 Use the custom dioxus-cli image to build the webclient dockerfile
2025-04-27 03:46:57 +02:00

25 lines
619 B
Docker

FROM rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.6.3 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
# git is required by the git-version crate
RUN apt update \
&& apt install -y --no-install-recommends git \
&& apt clean
COPY . .
RUN dx build -r --platform web -- -j ${JOBS_NB}
FROM nginx:mainline-alpine-slim
WORKDIR /usr/share/nginx/html
COPY --from=builder /usr/src/beau-gosse-du-92/target/dx/beau-gosse-du-92/release/web/public .