👷 Use of the CI to deliver a new image on each commit (temp)
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -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
|
||||
|
Reference in New Issue
Block a user