wordlebot/Dockerfile

13 lines
319 B
Docker
Raw Permalink 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
2023-07-07 17:33:21 +02:00
2023-07-07 16:16:24 +02:00
RUN apt-get update \
2023-07-07 17:33:21 +02:00
&& apt-get install -y libssl3 ca-certificates \
2023-07-07 16:16:24 +02:00
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/wordlebot /usr/local/bin/wordlebot
CMD ["wordlebot"]