Files
beau-gosse-du-92/Dockerfile
Adrien 4add49b260
Some checks failed
ci/woodpecker/push/dockerize Pipeline failed
ci/woodpecker/push/deploy unknown status
👷 Use of the homemade dioxux-cli docker image to reduce building time
2024-04-15 22:54:42 +02:00

21 lines
529 B
Docker

FROM rust:latest AS builder
# Homemade docker image providing the dioxus-cli
COPY --from=dioxus-cli:asr-0.5.2 /usr/local/bin/dx /usr/local/bin/dx
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 /usr/local/bin/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