Files
beau-gosse-du-92/Dockerfile
Adrien 6f95e0f57b
All checks were successful
ci/woodpecker/push/dockerize Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
👷 Use of the CI to deliver a new image on each commit (temp)
2024-04-15 22:04:25 +02:00

22 lines
450 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 install -j ${JOBS_NB} dioxus-cli
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/dist .