lmfdb / Dockerfile
mike dupont
LMFDB Witness Protocol WASM interface
858cd8d
Raw
History Blame Contribute Delete
335 Bytes
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", "."]