diff --git a/.dockerignore b/.dockerignore index 8953dc613..c7ee73855 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,3 +10,4 @@ kanidmd/sampledata Makefile target test.db +Dockerfile diff --git a/server/Dockerfile b/server/Dockerfile index a2e916ce2..f34668967 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -54,20 +54,43 @@ RUN --mount=type=cache,id=cargo,target=/cargo \ --release; \ sccache -s +# Find and copy dynamically linked libraries using ldd +# caveat: this actually partially runs the binary, so it doesn't work for cross-compilation +RUN <