21 lines
483 B
Docker
21 lines
483 B
Docker
# 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 build --release --features web
|
|
RUN cargo build --release --features server
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
COPY --from=builder /app/dist /usr/local/bin/dist
|
|
COPY --from=builder /app/target/release/personal-website /usr/local/bin/dist
|
|
|
|
EXPOSE 8080
|
|
WORKDIR /usr/local/bin/
|
|
CMD ["./dist/personal-website"]
|