Open sveitser opened 2 years ago
It's possible this will be enough
diff --git a/bin/build-docker-wallet b/bin/build-docker-wallet
index ad1325e..f7da7b2 100755
--- a/bin/build-docker-wallet
+++ b/bin/build-docker-wallet
@@ -7,6 +7,6 @@
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
set -e
-build-docker-base
cargo build --release
+patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ./target/release/wallet-api
docker build -t cape/wallet -f ./wallet.Dockerfile .
diff --git a/flake.nix b/flake.nix
index a99b38b..170f4be 100644
--- a/flake.nix
+++ b/flake.nix
@@ -177,6 +177,7 @@
cacert
mdbook # make-doc, documentation generation
moreutils # includes `ts`, used to add timestamps on CI
+ patchelf # to make binaries built with nix work in ubuntu container
]
++ myPython
++ rustDeps;
It may make sense for us to copy/move/rename the executable so that it doesn't impact the non-patched one and surprise people.
Follow up on