rust needs way more than I realized

This commit is contained in:
41666 2022-02-06 20:08:09 -05:00
parent ce77046d86
commit 3c49529fe3

View file

@ -16,7 +16,7 @@ COPY . .
RUN cargo build --release --bin bot RUN cargo build --release --bin bot
# We do not need the Rust toolchain to run the binary! # We do not need the Rust toolchain to run the binary!
FROM gcr.io/distroless/base AS runtime FROM debian:slim AS runtime
WORKDIR /app WORKDIR /app
COPY --from=builder /app/target/release/bot /usr/local/bin COPY --from=builder /app/target/release/bot /usr/local/bin/bot
ENTRYPOINT ["/usr/local/bin/bot"] ENTRYPOINT ["/usr/local/bin/bot"]