Dockerfile 365 B

1234567891011121314151617181920
  1. FROM node:20-slim
  2. # Install pnpm and nodemon
  3. RUN npm install -g pnpm nodemon
  4. # Set up the working directory
  5. WORKDIR /usr/src/app
  6. # Copy over the package definitions
  7. COPY package.json pnpm-lock.yaml ./
  8. # Install dependencies
  9. RUN pnpm install
  10. # Copy over the rest of the files
  11. COPY . .
  12. # What the container should run when it is started.
  13. CMD ["pnpm", "start"]