FROM node:20-slim # Install pnpm and nodemon RUN npm install -g pnpm nodemon # Set up the working directory WORKDIR /usr/src/app # Copy over the package definitions COPY package.json pnpm-lock.yaml ./ # Install dependencies RUN pnpm install # Copy over the rest of the files COPY . . # What the container should run when it is started. CMD ["pnpm", "start"]