2024-09-02 20:21:19 +02:00
|
|
|
FROM rust:1.80-alpine3.20 as build
|
2024-09-02 15:16:32 +02:00
|
|
|
|
2024-09-02 20:00:05 +02:00
|
|
|
COPY battlesnake/ /usr/app
|
2024-09-02 15:16:32 +02:00
|
|
|
WORKDIR /usr/app
|
|
|
|
|
2024-09-02 20:21:19 +02:00
|
|
|
RUN apk add --no-cache musl-dev=1.2.5-r0
|
2024-09-02 20:00:05 +02:00
|
|
|
RUN cargo install --path .
|
2024-09-02 15:16:32 +02:00
|
|
|
|
2024-09-02 20:21:19 +02:00
|
|
|
FROM alpine:3.20
|
|
|
|
COPY --from=build /usr/local/cargo/bin/battlesnake /bin/battlesnake
|
|
|
|
|
2024-09-02 15:16:32 +02:00
|
|
|
CMD ["battlesnake"]
|