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.

31 lines
711 B

2 months ago
3 weeks ago
2 months ago
3 weeks ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 weeks ago
2 months ago
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 package-lock.json (if exists)
  6. COPY package.json ./
  7. # Install dependencies
  8. RUN npm install --legacy-peer-deps
  9. # Copy the rest of the application code
  10. COPY . .
  11. # Set environment variables
  12. ENV NEXT_PUBLIC_DEFAULT_LANGUAGE=en
  13. ENV NEXT_PUBLIC_AVAILABLE_LANGUAGES=en
  14. ENV NEXT_PUBLIC_ENABLE_MULTI_LANG=true
  15. ENV NODE_ENV=production
  16. ENV NEXT_PUBLIC_REST_API_ENDPOINT=https://mesbahi.nwhco.ir/api
  17. ENV NEXT_PUBLIC_SITE_URL=https://mesbahi.nwhco.ir
  18. ENV USE_MOCK_DATA=false
  19. # Build the Next.js application
  20. RUN npm run build
  21. # Expose the port the app runs on
  22. EXPOSE 3000
  23. # Start the application
  24. CMD ["npm", "start"]