discord-egress/Dockerfile

15 lines
331 B
Docker
Raw Normal View History

2024-07-22 17:15:03 +00:00
# Build the execuitible
FROM rustlang/rust:nightly as builder
ENV RUSTFLAGS=""
WORKDIR /bot
COPY . .
RUN cargo build --release
# Now make the runtime container
FROM debian:bookworm-slim
2024-07-23 17:13:07 +00:00
COPY --from=builder /bot/target/release/discord_egress /usr/local/bin/discord_egress
2024-07-22 17:15:03 +00:00
COPY Cargo.lock /
2024-07-23 17:13:07 +00:00
CMD ["/usr/local/bin/discord_egress"]