aps_webviewer_nodejs/Dockerfile

21 lines
375 B
Text
Raw Normal View History

2024-11-08 07:51:28 +01:00
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