pinbot-rs/Dockerfile
Julius 7d098f6b5d
Some checks failed
continuous-integration/drone/push Build is failing
Updates lmao
2024-10-17 15:50:06 +02:00

21 lines
319 B
Docker

FROM rust:1.61.0-alpine as builder
WORKDIR /app
RUN cargo init
COPY Cargo.* /app/
RUN cargo fetch
RUN apk add --no-cache musl-dev
RUN cargo build --release
COPY src /app/src
RUN cargo build --release
FROM alpine as runtime
COPY --from=builder /app/target/release/pinbot-rs /app/pinbot-rs
CMD ["/app/pinbot-rs"]