diff --git a/.github/docker/Dockerfile.glibc b/.github/docker/Dockerfile.glibc index 5b801e3..c114db0 100644 --- a/.github/docker/Dockerfile.glibc +++ b/.github/docker/Dockerfile.glibc @@ -4,9 +4,8 @@ FROM $NODE_BUILD_IMAGE AS build WORKDIR /mongodb-client-encryption COPY . . -RUN node ./.github/scripts/libmongocrypt.mjs -RUN mkdir -p /out && cp -R /mongodb-client-encryption/prebuilds/ /out +RUN node /mongodb-client-encryption/.github/scripts/libmongocrypt.mjs FROM scratch -COPY --from=build /out / +COPY --from=build /mongodb-client-encryption/prebuilds/ / diff --git a/.github/scripts/build_linux.mjs b/.github/scripts/build_linux.mjs index cc204a5..45562d8 100644 --- a/.github/scripts/build_linux.mjs +++ b/.github/scripts/build_linux.mjs @@ -44,11 +44,18 @@ async function main() { '--platform', 'linux/s390x,linux/arm64,linux/amd64', '--output', - 'type=local,dest=.,platform-split=false', + 'type=local,dest=./prebuilds,platform-split=false', '-f', resolveRoot('./.github/docker/Dockerfile.glibc'), resolveRoot('.') ]); + + /** + * Running locally and want a fresh start? + * + * docker buildx prune --force + * docker buildx rm builder + */ } await main();