Skip to content

Commit

Permalink
chore: fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed May 23, 2024
1 parent 8d521b8 commit 37a3194
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/docker/Dockerfile.glibc
Original file line number Diff line number Diff line change
Expand Up @@ -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/ /
9 changes: 8 additions & 1 deletion .github/scripts/build_linux.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 37a3194

Please sign in to comment.