ayselafsar / dicomviewer

DICOM Viewer in Nextcloud
https://apps.nextcloud.com/apps/dicomviewer
GNU Affero General Public License v3.0
229 stars 53 forks source link

Build of DICOM-Viewer in own Nextcloud Docker container fails #125

Open PReichetanz opened 2 months ago

PReichetanz commented 2 months ago

Describe the bug When trying to install the DICOM-Viewer in a docker container of Nextcloud, the described build steps fail due to an error with @ohif/app:build:viewer:nextcloud. It is possible to enable the Dicom-Viewer app (without downloading it, so the app itself is available), but .dcm-files are not opened, only downloaded.

To Reproduce Steps to reproduce the behavior:

  1. Set up a docker container for Nextcloud as described here, I used the compose.yml example described here.
  2. Start container and enter shell with docker compose up -d and docker exec -it <containername> bash
  3. Install git: apt-get -y update + apt-get -y install git
  4. Install node@20 and npm via nvm as described in the homepage
  5. Install yarn npm install yarn
  6. Clone DICOM-Viewer app: cd apps, git clone https://github.com/ayselafsar/dicomviewer.git
  7. Replace empty acanio-viewer folder with clone of the repo: rm -rf acanio-viewer, git clone https://github.com/acanio/acanio-viewer.git
  8. Run build of DICOM-Viewer: npm run build (fails with exit code 1, see screenshots below)
  9. Open Nextcloud on localhost:8080, login and enable the DICOM Viewer app.
  10. Upload a .dcm-file and try to open it in browser.

Expected behavior I can build the DICOM Viewer package, enable the DICOM-Viewer app in my Nextcloud and it displays .dcm files in the browser as intended.

Screenshots Terminal output: Screenshot 2024-09-06 at 16 12 19

Trying to open a .dcm file after enabling the app shows this error message: Screenshot 2024-09-06 at 15 57 29

Client details:

Server details **DICOM viewer app version:** 2.1.2 **Operating system**: Linux 6.10.0-linuxkit **Web server:** **Database:** **PHP version:** **Nextcloud version:** Nextcloud Hub 8 (29.0.6)
Logs #### Nextcloud log (data/nextcloud.log) ``` Insert your Nextcloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```