From 4347dbd2e4de5c59b1ae11a68da99d4dfae97fdb Mon Sep 17 00:00:00 2001 From: MrExplode Date: Sun, 22 Oct 2023 12:33:08 +0200 Subject: [PATCH] fix: correct Dockerfile [no ci] --- Cargo.toml | 5 +++++ Dockerfile | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c6a5c7d..298585c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,8 @@ serde = { version = "1.0.189", features = ["derive"] } serde_json = "1.0" serde_qs = "0.12.0" env_logger = "0.10.0" + +[[bin]] +name = "hooks" +test = false +bench = false diff --git a/Dockerfile b/Dockerfile index c06d9ca..1af3424 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM rust:1.73-alpine as builder +FROM clux/muslrust:stable as builder WORKDIR /app COPY . . -RUN cargo install --path . +RUN cargo install --path . --root . --no-track FROM alpine:latest as runner WORKDIR /app -COPY --from=builder /hooks . +COPY --from=builder /app/bin/hooks . CMD [ "/app/hooks" ] \ No newline at end of file