from node:wheezy # Create app directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # Bundle app source COPY . /usr/src/app # Install app dependencies COPY package.json /usr/src/app/ RUN npm install # Build app RUN npm run clean RUN npm run build # Expose the port EXPOSE 1337 # Run it! CMD [ "npm", "start" ]