update dockerfile: no longer build on run

This commit is contained in:
2024-10-10 11:17:42 -04:00
parent 7976ac28c0
commit e20f28d2d0

View File

@@ -1,10 +1,10 @@
FROM rust:1.81 FROM rust:1.81 AS builder
WORKDIR /usr/src/bot WORKDIR /usr/src/bot
COPY . . COPY . .
# FROM ubuntu:24.10 RUN cargo --install --path .
# COPY --from=builder /usr/local/cargo/bin/bot /usr/local/bin/bot
# temporary fix for slow cross compile builds. FROM ubuntu:24.10
# this will simply compile and run the code on `docker run` COPY --from=builder /usr/local/cargo/bin/bot /usr/local/bin/bot
CMD ["cargo", "run", "--release"]
CMD ["bot"]