comfycamp/Dockerfile

18 lines
514 B
Docker

FROM rust:1.82-slim-bookworm AS builder
RUN apt update && apt install -y pkg-config libssl-dev
WORKDIR /usr/src/comfycamp
COPY . .
RUN cargo install --path .
FROM debian:bookworm-slim
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/comfycamp
RUN mkdir -p src/web
COPY src/web/assets src/web/assets
COPY src/web/templates src/web/templates
COPY config.default.toml ./
COPY --from=builder /usr/local/cargo/bin/comfycamp /usr/local/bin/comfycamp
CMD ["comfycamp"]