blessed-rs/Dockerfile
2022-03-14 00:16:20 +00:00

17 lines
No EOL
497 B
Docker

FROM rust:1.59 as builder
WORKDIR /usr/src/blessed-rs
COPY ./Cargo.toml ./Cargo.toml
COPY ./Cargo.lock ./Cargo.lock
COPY ./src ./src
COPY ./data ./data
RUN cargo install --path .
FROM debian:buster-slim
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/blessed-rs /usr/local/bin/blessed-rs
WORKDIR /usr/blessed-rs
COPY ./static ./static
COPY ./templates ./templates
COPY ./data ./data
CMD ["blessed-rs"]