-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 957 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (20 loc) · 957 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
30
# ─── Build stage ────────────────────────────────────────────────────────────
FROM rust:1.87-slim AS builder
WORKDIR /app
RUN apt-get update -y && \
apt-get install -y pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock ./
COPY src ./src
COPY frontend ./frontend
RUN cargo build --release
# ─── Runtime stage ──────────────────────────────────────────────────────────
FROM debian:bookworm-slim
RUN apt-get update -y && \
apt-get install -y ca-certificates libssl3 && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/roundchat /usr/local/bin/roundchat
COPY frontend /app/frontend
WORKDIR /app
EXPOSE 3000
CMD ["roundchat", "serve"]