Skip to content

Instantly share code, notes, and snippets.

@addaleax
Created January 13, 2023 15:39
Show Gist options
  • Save addaleax/0d8cd6fabfc0ab52ee87b3099178c606 to your computer and use it in GitHub Desktop.
Save addaleax/0d8cd6fabfc0ab52ee87b3099178c606 to your computer and use it in GitHub Desktop.
FROM ubuntu:22.04
ADD https://nodejs.org/dist/v19.4.0/node-v19.4.0-linux-x64.tar.gz /tmp
RUN cd /tmp && tar xvf node-v19.4.0-linux-x64.tar.gz
RUN echo "const crypto = require('crypto');crypto.setFips(1);console.log('start get random bytes');crypto.randomBytes(20, console.log);" > /tmp/repro.js
ENTRYPOINT ["/tmp/node-v19.4.0-linux-x64/bin/node", "/tmp/repro.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment