FROM rust:alpine WORKDIR /usr/src/app RUN apk add --update musl-dev openssl openssl-dev COPY public/ public/ COPY data/ data/ COPY src/ src/ COPY Cargo.toml . COPY Cargo.lock . COPY Dioxus.toml . COPY access_token.key . ENV OPENSSL_NO_VENDOR=1 RUN cargo fetch && cargo install dioxus-cli --locked RUN dx build --release CMD ["dx", "serve", "--release"]