Skip to content

Commit 8ef44a7

Browse files
committed
Build the directory from workspace root
Changing the build process of the directory to build from the root workspace. Payjoin dependencies on crate.io may not always be compatible leading to failed builds
1 parent 795ad4d commit 8ef44a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

payjoin-directory/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ ENV AR_x86_64_unknown_linux_musl=ar
2020
# Add the x86_64-unknown-linux-musl target
2121
RUN rustup target add x86_64-unknown-linux-musl
2222

23-
# Copy the manifest and source code
24-
COPY payjoin-directory/Cargo.toml ./
25-
COPY payjoin-directory/src/ ./src/
23+
# Copy the workspace manifest and source code
24+
COPY . .
2625

2726
# Build the binary
28-
RUN cargo build --release --target x86_64-unknown-linux-musl
27+
RUN cargo build --bin payjoin-directory --release --target x86_64-unknown-linux-musl
2928

3029
# Create final minimal image
3130
FROM --platform=linux/amd64 alpine:latest

0 commit comments

Comments
 (0)