🚀 Add the Dockerfile for the web app

This commit is contained in:
2024-04-11 08:32:57 +02:00
parent d3a35cd81f
commit 77fa0c5fd5

20
Dockerfile Normal file
View File

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