FROM node:20-slim # Install pnpm and nodemon RUN npm install -g pnpm nodemon # Set up the working directory WORKDIR /usr/src/app # Copy package.json and pnpm-lock.yaml COPY package.json pnpm-lock.yaml ./ # Install dependencies RUN pnpm install # Copy the rest of the application COPY . . # Expose the port the app runs on EXPOSE 1844 # Start the server CMD [ "nodemon", "server.js" ]