FROM rust:latest WORKDIR /app # Install wasm-pack RUN cargo install wasm-pack # Copy source COPY . . # Build WASM RUN wasm-pack build --target web # Install simple HTTP server RUN cargo install miniserve # Expose port EXPOSE 7860 # Serve on Hugging Face Spaces port CMD ["miniserve", "--index", "index.html", "-p", "7860", "."]