trade_bot/Containerfile
Jeff 3decf13e9c
Some checks failed
Publish / rust (push) Successful in 4m44s
Publish / docker (push) Failing after 14s
Rename file
2024-07-18 09:21:55 -04:00

24 lines
349 B
Docker

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
COPY --from=build /app/target/release/trade-bot trade-bot
COPY assets/ assets/
RUN chmod +x trade-bot
ENTRYPOINT ["./trade-bot"]