wordlebot/Dockerfile

12 lines
345 B
Docker
Raw Normal View History

2023-07-07 16:16:24 +02:00
FROM rust:1-bookworm as builder
WORKDIR /usr/src/wordlebot
COPY . .
RUN cargo install --path .
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y extra-runtime-dependencies libssl3 ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/wordlebot /usr/local/bin/wordlebot
CMD ["wordlebot"]