| 1234567891011121314151617181920212223 |
- 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" ]
|