generated from Oliver/discord-bot-template
15 lines
331 B
Docker
15 lines
331 B
Docker
# 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
|
|
|
|
COPY --from=builder /bot/target/release/discord_egress /usr/local/bin/discord_egress
|
|
COPY Cargo.lock /
|
|
|
|
CMD ["/usr/local/bin/discord_egress"] |