Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 3 additions & 0 deletions test/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const os = require('os')

console.log(`Working on: ${os.platform} ${os.arch}`)