2024-10-26 19:11:54 +05:00
|
|
|
FROM rust:1.82-slim-bookworm AS builder
|
2024-11-01 15:56:01 +05:00
|
|
|
RUN apt update && apt install -y pkg-config libssl-dev
|
2024-10-26 19:11:54 +05:00
|
|
|
|
|
|
|
WORKDIR /usr/src/comfycamp
|
|
|
|
COPY . .
|
|
|
|
RUN cargo install --path .
|
|
|
|
|
|
|
|
FROM debian:bookworm-slim
|
2024-11-01 15:56:01 +05:00
|
|
|
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
2024-10-26 19:11:54 +05:00
|
|
|
|
|
|
|
WORKDIR /usr/src/comfycamp
|
|
|
|
RUN mkdir -p src/web
|
|
|
|
COPY src/web/assets src/web/assets
|
|
|
|
COPY src/web/templates src/web/templates
|
2024-11-01 15:21:55 +05:00
|
|
|
COPY config.default.toml ./
|
2024-10-26 19:11:54 +05:00
|
|
|
|
|
|
|
COPY --from=builder /usr/local/cargo/bin/comfycamp /usr/local/bin/comfycamp
|
|
|
|
CMD ["comfycamp"]
|