-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 853 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM rust:1.94-bookworm AS builder
WORKDIR /build
# Copy workspace
COPY Cargo.toml Cargo.lock ./
COPY crates/ crates/
# Build release binary with PostgreSQL support
RUN cargo build --release -p flight-review-server --features postgres \
&& cargo build --release -p flight-review --bin ulog-convert
# Runtime image — minimal, no Rust toolchain
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/target/release/flight-review-server /usr/local/bin/
COPY --from=builder /build/target/release/ulog-convert /usr/local/bin/
# Default data directory
RUN mkdir -p /data/files
EXPOSE 8080
ENTRYPOINT ["flight-review-server"]
CMD ["serve", "--db", "sqlite:///data/flight-review.db", "--storage", "file:///data/files"]