From 1a8dc0ab919d7dbe68825bf97cecc5f0c0ab65bb Mon Sep 17 00:00:00 2001 From: James <74595920+catch-21@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:48:19 +0000 Subject: [PATCH] Update Dockerfile Fix binary name in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62da9c6..9954b94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,10 +30,10 @@ COPY Cargo.toml Cargo.lock ./ COPY . . # Build the project in release mode for the MUSL target -RUN cargo build --release --bin pubky_homeserver --target x86_64-unknown-linux-musl +RUN cargo build --release --bin pubky-homeserver --target x86_64-unknown-linux-musl # Strip the binary to reduce size -RUN strip target/x86_64-unknown-linux-musl/release/pubky_homeserver +RUN strip target/x86_64-unknown-linux-musl/release/pubky-homeserver # ======================== # Runtime Stage @@ -44,7 +44,7 @@ FROM alpine:3.20 RUN apk add --no-cache ca-certificates # Copy the compiled binary from the builder stage -COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/pubky_homeserver /usr/local/bin/homeserver +COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/pubky-homeserver /usr/local/bin/homeserver # Set the working directory WORKDIR /usr/local/bin