group_bot/Dockerfile

24 lines
342 B
Docker
Raw Permalink Normal View History

2024-06-11 23:51:46 +00:00
FROM rust:1-slim AS build
WORKDIR /app
COPY Cargo.toml .
COPY Cargo.lock .
COPY rust-toolchain .
COPY src/ src/
RUN apt-get update
RUN apt-get install -y git
RUN cargo build --release
FROM fedora:40
WORKDIR /app
2024-06-12 23:06:51 +00:00
COPY --from=build /app/target/release/group-bot group-bot
2024-06-11 23:51:46 +00:00
COPY assets/ assets/
2024-06-12 23:06:51 +00:00
RUN chmod +x group-bot
2024-06-11 23:51:46 +00:00
2024-06-12 23:06:51 +00:00
CMD ["./group-bot"]