aps_webviewer_nodejs/Dockerfile
David Friedrich 98e799b7df First
2024-11-08 07:51:28 +01:00

20 lines
375 B
Docker

FROM node:22.9
# We have to install nodemon globally before moving into the working directory
RUN npm install -g nodemon
# 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
# Bundle app source
COPY . .
EXPOSE 8080
CMD ./start.sh