# https://github.com/DioxusLabs/dioxus/pull/4187 FROM rust:1.86.0 AS builder RUN rustup target add wasm32-unknown-unknown RUN cargo install dioxus-cli WORKDIR /app COPY . ./ RUN dx bundle --platform web FROM nginx COPY --from=builder /app/target/dx/personal-website/release/web/public /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD [ "nginx", "-g", "daemon off;" ]