You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
378 B

3 weeks ago
  1. # Base image
  2. FROM node:18-alpine
  3. # Set working directory
  4. WORKDIR /usr/src/app
  5. # Copy package.json and yarn.lock
  6. COPY package.json yarn.lock ./
  7. # Install dependencies
  8. RUN yarn install
  9. # Copy the rest of the application code
  10. COPY . .
  11. # Build the Next.js application
  12. RUN yarn build
  13. # Expose the port the app runs on
  14. EXPOSE 3000
  15. # Start the application
  16. CMD ["yarn", "start"]