add Containerfile

This commit is contained in:
naskya 2024-06-20 13:33:43 +09:00
parent 812b215767
commit 208314c91b
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

9
Containerfile Normal file
View file

@ -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