rii-mango / Daikon

A JavaScript DICOM reader.
Other
221 stars 54 forks source link

can't build app in docker #36

Closed macrusso closed 1 year ago

macrusso commented 4 years ago

Hi,

Everything works fine on my local repo but when I create container with docker-compose I end up with:

npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/rii-mango/JPEGLosslessDecoderJS.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

In docker I don't use git and daikon in package-lock.json looks like that:

    "daikon": {
      "version": "1.2.42",
      "resolved": "https://registry.npmjs.org/daikon/-/daikon-1.2.42.tgz",
      "integrity": "sha512-uEJKRNpJo6lWCMr1UehBJLCnpsmoY4cmaedjL03UCeUmyoV2SsCYiEo8I+rhfuoj2FHqtDJFRGfZAW729berww==",
      "requires": {
        "jpeg-lossless-decoder-js": "git+https://github.com/rii-mango/JPEGLosslessDecoderJS.git",
        "pako": "^1.0.6"
      },
      "dependencies": {
        "jpeg-lossless-decoder-js": {
          "version": "git+https://github.com/rii-mango/JPEGLosslessDecoderJS.git#78fe90c7cae985b1a394a66f99c81633144bb867",
          "from": "git+https://github.com/rii-mango/JPEGLosslessDecoderJS.git"
        }
      }
    },

I guess all references to git should be replaced with general ones like for pako