🚀 Update Dockerfile to take the new code organization into account

This commit is contained in:
2024-04-12 14:44:44 +02:00
parent 741124e47e
commit fb4554aa71

View File

@@ -2,19 +2,21 @@ FROM rust:latest AS builder
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
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
FROM nginx:mainline-alpine-slim
COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html
WORKDIR /usr/share/nginx/html
COPY --from=builder /usr/src/beau-gosse-du-92/dist .