hicetnunc icon indicating copy to clipboard operation
hicetnunc copied to clipboard

Error code: 'ERR_OSSL_EVP_UNSUPPORTED' in latest docker build

Open davidhalldor opened this issue 3 years ago • 1 comments

Describe the bug Can't run Docker image [email protected] after build

Screenshots

  • screenshots of your minting process
  • screenshots of profiles affected
  • screenshots of the browser console (in chrome windows, press ctrl + shift + j to open the developer console)
  • screenshot from docker app image

To Reproduce Steps to reproduce the behavior:

  1. cli cmd 1
docker image build -t hicetnunc:1.0
  1. cli cmd 2
docker run -it -p 3000:3000 hicetnunc:1.0
  1. cli stdout error
Starting the development server...

/usr/src/app/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/usr/src/app/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/usr/src/app/node_modules/webpack/lib/NormalModule.js:417:16)
    at /usr/src/app/node_modules/webpack/lib/NormalModule.js:452:10
    at /usr/src/app/node_modules/webpack/lib/NormalModule.js:323:13
    at /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /usr/src/app/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.2.0

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS:
    ProductName:	macOS
    ProductVersion:	12.0.1
    BuildVersion:	21A559

davidhalldor avatar Dec 04 '21 12:12 davidhalldor

My guess is that node:latest has something in it that doesn't work with the code. The README says to use node 12, so maybe set the Dockerfile to use an older version of node?

skenaja avatar Dec 04 '21 17:12 skenaja