hardfight/Dockerfile

14 lines
333 B
Docker
Raw Permalink Normal View History

2023-10-10 11:05:10 +00:00
FROM alpine/git:latest as ircie
WORKDIR /ircie
2023-10-04 12:21:19 +00:00
RUN git clone https://git.supernets.org/sad/ircie.git
2023-10-10 11:05:10 +00:00
FROM rust:1-bookworm as builder
WORKDIR /app
2023-10-04 12:15:57 +00:00
COPY . .
2023-10-10 11:05:10 +00:00
COPY --from=ircie /ircie/ /app/
2023-10-04 12:15:57 +00:00
RUN cargo build --release
2023-10-10 11:05:10 +00:00
FROM rust:1-bookworm as app
WORKDIR /hardfight
COPY --from=builder /app/target/release/hardfight .
CMD ["./hardfight"]