From 208314c91bd0a08fa44fa6e8e8d5a221ff1e608d Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 20 Jun 2024 13:33:43 +0900 Subject: [PATCH] add Containerfile --- Containerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..6014b15 --- /dev/null +++ b/Containerfile @@ -0,0 +1,9 @@ +FROM docker.io/rust:alpine AS builder +WORKDIR /fishctl +COPY . . +RUN apk add --no-cache musl-dev +RUN cargo install --locked --path . + +FROM docker.io/busybox:musl +COPY LICENSE ./ +COPY --from=builder /usr/local/cargo/bin/fishctl /usr/local/bin/fishctl