diff --git a/Dockerfile b/Dockerfile index a71213b..36945f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,20 @@ -FROM node:22.9 - -# We have to install nodemon globally before moving into the working directory -RUN npm install -g nodemon +FROM node:alpine # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied -COPY package*.json ./ +#RUN npm install -g nodaemon +COPY package*.json /usr/src/app/ RUN npm install -# Bundle app source -COPY . . +#UN npm install -g nodaemon +COPY . /usr/src/app/ +#RUN npm install + EXPOSE 8080 CMD ./start.sh diff --git a/docker-compose.yml b/docker-compose.yml index 08bb7c0..c04c03c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,5 +7,5 @@ services: restart: always ports: - 127.0.0.1:8080:8080 - command: bash -c /usr/src/app/start.sh + command: sh -c /usr/src/app/start.sh env_file: .env diff --git a/wwwroot/viewer.js b/wwwroot/viewer.js index ee4e813..c2d2716 100644 --- a/wwwroot/viewer.js +++ b/wwwroot/viewer.js @@ -22,6 +22,7 @@ export function initViewer(container) { }; const viewer = new Autodesk.Viewing.GuiViewer3D(container, config); viewer.start(); + viewer.addEventListener(Autodesk.Viewing.TOOLBAR_CREATED_EVENT, onToolbarCreated); viewer.setTheme("light-theme"); resolve(viewer); }