# pull official base image FROM node:18.16.0 # set working directory WORKDIR /app # Copies package.json and package-lock.json to Docker environment COPY package*.json ./ # Add `/app/node_modules/.bin` to $PATH ENV PATH /app/node_modules/.bin:$PATH # Installs all node packages RUN npm install --legacy-peer-deps # Uses port which is used by the actual application EXPOSE 21287 # Run application CMD [ "npm", "start" ]