Skip to content

Commit

Permalink
Merge pull request #58 from pubky/catch-21/update-dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
Nuhvi authored Nov 18, 2024
2 parents 7a0ed55 + 1a8dc0a commit 857ab88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 857ab88

Please sign in to comment.