comfycamp/Dockerfile

16 lines
351 B
Text
Raw Normal View History

2024-10-26 19:11:54 +05:00
FROM rust:1.82-slim-bookworm AS builder
WORKDIR /usr/src/comfycamp
COPY . .
RUN cargo install --path .
FROM debian:bookworm-slim
WORKDIR /usr/src/comfycamp
RUN mkdir -p src/web
COPY src/web/assets src/web/assets
COPY src/web/templates src/web/templates
COPY --from=builder /usr/local/cargo/bin/comfycamp /usr/local/bin/comfycamp
CMD ["comfycamp"]