All checks were successful
CI / Tests (push) Has been skipped
CI / Format (push) Successful in 3s
CI / Clippy (push) Successful in 3m7s
CI / Security Audit (push) Has been skipped
CI / Format (pull_request) Successful in 3s
CI / Clippy (pull_request) Successful in 3m5s
CI / Security Audit (pull_request) Has been skipped
CI / Tests (pull_request) Has been skipped
- Add external "Docs" link in sidebar with configurable DOCS_URL - Add Dockerfile.docs for VitePress static site (nginx) - Add DOCS_URL build arg to Dockerfile.dashboard - Run cargo fmt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
594 B
Docker
22 lines
594 B
Docker
FROM rust:1.89-bookworm AS builder
|
|
|
|
RUN cargo install dioxus-cli --version 0.7.3
|
|
|
|
ARG DOCS_URL=/docs
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
ENV DOCS_URL=${DOCS_URL}
|
|
RUN dx build --release --package compliance-dashboard
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/target/dx/compliance-dashboard/release/web/compliance-dashboard /app/compliance-dashboard
|
|
COPY --from=builder /app/target/dx/compliance-dashboard/release/web/public /app/public
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["./compliance-dashboard"]
|