trade_bot/Containerfile

24 lines
349 B
Plaintext
Raw Normal View History

2024-07-03 19:04:49 -04: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-07-05 23:58:50 -04:00
COPY --from=build /app/target/release/trade-bot trade-bot
2024-07-03 19:04:49 -04:00
COPY assets/ assets/
2024-07-05 23:58:50 -04:00
RUN chmod +x trade-bot
2024-07-03 19:04:49 -04:00
2024-07-08 22:01:07 -04:00
ENTRYPOINT ["./trade-bot"]