pinbot-rs/Dockerfile

21 lines
319 B
Docker
Raw Normal View History

2024-10-17 15:59:13 +02:00
FROM rust:1.81.0-alpine as builder
2022-06-24 17:23:37 +02:00
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
2024-10-17 15:50:06 +02:00
FROM alpine as runtime
2022-06-24 17:23:37 +02:00
COPY --from=builder /app/target/release/pinbot-rs /app/pinbot-rs
CMD ["/app/pinbot-rs"]