font-explorer/server/Dockerfile

18 lines
345 B
Docker
Raw Permalink Normal View History

2025-03-05 13:20:15 +00:00
FROM rust:bookworm AS builder
2025-03-05 13:20:15 +00:00
VOLUME /build
WORKDIR /build
2025-03-05 13:20:15 +00:00
FROM builder AS dev
RUN cargo install cargo-watch
CMD [ "cargo", "watch", "-x", "run" ]
FROM builder AS build
COPY . .
RUN cargo install --path /build
2025-03-05 13:20:15 +00:00
FROM debian:bookworm-slim AS prod
COPY --from=build /usr/local/cargo/bin/webview /app/webview
VOLUME /fonts
CMD [ "/app/webview" ]