🚀 Add the Dockerfile for the web app
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
|
Reference in New Issue
Block a user