diff --git a/Dockerfile.cross b/Dockerfile.cross index 97f1b41..b7091f9 100644 --- a/Dockerfile.cross +++ b/Dockerfile.cross @@ -20,4 +20,15 @@ RUN mkdir -p /fetched RUN MAKE_JOB_COUNT=${NPROC} yarn run bin ${PKG_NODE} ${PKG_OS} ${PKG_ARCH} +RUN yarn global add pkg + +COPY ./test /test +# For testing: +# COPY fetched-v12.18.1-linux-arm64 /fetched/v2.6/ + +WORKDIR /test + +# test +RUN pkg -t ${PKG_NODE}-${PKG_OS}-${PKG_ARCH} app.js && ./app + CMD ["sh"] \ No newline at end of file diff --git a/test/app.js b/test/app.js new file mode 100644 index 0000000..40056ef --- /dev/null +++ b/test/app.js @@ -0,0 +1,3 @@ +const os = require('os') + +console.log(`Working on: ${os.platform} ${os.arch}`)