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