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.

24 lines
321 B

3 days ago
  1. # Base image
  2. FROM node:18-alpine
  3. # Set working directory
  4. WORKDIR /app
  5. # Install dependencies
  6. COPY package*.json ./
  7. RUN yarn install
  8. #RUN npm install
  9. # Copy project files
  10. COPY . .
  11. RUN yarn build
  12. # Expose port
  13. EXPOSE 3000
  14. CMD ["yarn", "start"]
  15. # Start the application in development mode
  16. #CMD ["npm", "run", "dev"]