mirror of
https://github.com/nicoburns/blessed-rs
synced 2024-11-22 11:43:09 +00:00
17 lines
No EOL
497 B
Docker
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"] |