map of server

This commit is contained in:
Oliver Atkinson
2024-07-23 11:13:07 -06:00
parent e0a9f957a5
commit 67ee89bad9
5 changed files with 916 additions and 504 deletions

View File

@@ -3,15 +3,13 @@ FROM rustlang/rust:nightly as builder
ENV RUSTFLAGS=""
WORKDIR /bot
# RUN apt-get update && apt-get upgrade -y
COPY . .
RUN cargo build --release
# Now make the runtime container
FROM debian:bookworm-slim
RUN apt-get update && apt-get upgrade -y && apt-get clean
COPY --from=builder /bot/target/release/REPO-NAME /usr/local/bin/REPO-NAME
COPY --from=builder /bot/target/release/discord_egress /usr/local/bin/discord_egress
COPY Cargo.lock /
CMD ["/usr/local/bin/REPO-NAME"]
CMD ["/usr/local/bin/discord_egress"]