Files
beau-gosse-du-92/Dockerfile
Adrien 57b0e94061
Some checks failed
ci/woodpecker/push/deploy Pipeline was canceled
👷 CPU constraints shall not be set in the Dockerfile, but by the CI job
2024-04-12 21:30:45 +02:00

23 lines
481 B
Docker

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
FROM nginx:mainline-alpine-slim
COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html