slim docker image
This commit is contained in:
parent
60bd5acd35
commit
c13f2d553b
@ -1,8 +1,12 @@
|
|||||||
FROM rust:1.80
|
FROM rust:1.80-alpine3.20 as build
|
||||||
|
|
||||||
COPY battlesnake/ /usr/app
|
COPY battlesnake/ /usr/app
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
|
|
||||||
|
RUN apk add --no-cache musl-dev=1.2.5-r0
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
|
FROM alpine:3.20
|
||||||
|
COPY --from=build /usr/local/cargo/bin/battlesnake /bin/battlesnake
|
||||||
|
|
||||||
CMD ["battlesnake"]
|
CMD ["battlesnake"]
|
||||||
|
Loading…
Reference in New Issue
Block a user