👷 Use of the CI to deliver a new image on each commit (temp)
All checks were successful
ci/woodpecker/push/dockerize Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2024-04-15 22:04:25 +02:00
parent d4af06d687
commit 6f95e0f57b
4 changed files with 53 additions and 10 deletions

View File

@@ -1,18 +1,17 @@
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
RUN cargo install dioxus-cli
COPY . .
COPY Cargo.* .
COPY ./src ./src
COPY ./public ./public
COPY ./Dioxus.toml .
COPY ./build.rs .
COPY ./.cargo ./.cargo
RUN ln -s ./public/index.html ./index.html \
&& dx build -r --platform web
RUN cargo install -j ${JOBS_NB} dioxus-cli
RUN dx build -r --platform web -- -j ${JOBS_NB}
FROM nginx:mainline-alpine-slim