Dockerfile 392 B

1234567891011121314151617181920212223
  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 package.json and pnpm-lock.yaml
  7. COPY package.json pnpm-lock.yaml ./
  8. # Install dependencies
  9. RUN pnpm install
  10. # Copy the rest of the application
  11. COPY . .
  12. # Expose the port the app runs on
  13. EXPOSE 1844
  14. # Start the server
  15. CMD [ "nodemon", "server.js" ]