fishctl/Containerfile

12 lines
343 B
Text
Raw Normal View History

2024-06-20 13:33:43 +09:00
FROM docker.io/rust:alpine AS builder
2024-07-02 00:48:30 +09:00
WORKDIR /repository
2024-06-20 13:33:43 +09:00
COPY . .
2024-07-02 00:48:30 +09:00
RUN apk add --no-cache musl-dev build-base perl
RUN cargo install --locked --path fishctl
2024-06-20 13:33:43 +09:00
FROM docker.io/busybox:musl
2024-07-02 00:48:30 +09:00
COPY README.md LICENSE-APACHE LICENSE-MIT .
2024-06-20 13:33:43 +09:00
COPY --from=builder /usr/local/cargo/bin/fishctl /usr/local/bin/fishctl
2024-06-21 02:09:50 +09:00
WORKDIR /firefish
2024-07-02 00:48:30 +09:00
ENTRYPOINT ["fishctl"]