Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ 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

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}`)