Commit 6e5c7c8
authored
Fix Payjoin directory docker build (payjoin#592)
Running into
```
=> ERROR [builder 7/7] RUN cargo build --release --target x86_64-unknown-linux-musl 4.3s
------
> [builder 7/7] RUN cargo build --release --target x86_64-unknown-linux-musl:
0.228 Updating crates.io index
4.306 error: failed to select a version for `payjoin`.
4.306 ... required by package `payjoin-directory v0.0.1 (/usr/src/payjoin-directory)`
4.306 versions that meet the requirements `^0.22.0` are: 0.22.0
4.306
4.306 the package `payjoin-directory` depends on `payjoin`, with features: `directory` but `payjoin` does not have these features.
4.306
4.306
4.306 failed to select a version for `payjoin` which could resolve this conflict
```
Which can be resolved by building the directory from the workspace. In
order to do that we need to copy the workspace manifest and all the
source code. I introduced a dockerignore file to ignore build files and
other non-source code files in the first commit
Tested using:
```bash
docker buildx build --no-cache -f payjoin-directory/Dockerfile . -t payjoin-directory:0.0.1-rc2 --load
```2 files changed
+38
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
0 commit comments