idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.59k stars 2.04k forks source link

Fix: Update Dockerfile to use correct npm script for frontend service #1020

Closed Jeetpal1 closed 8 months ago

Jeetpal1 commented 8 months ago

Description

This pull request addresses the issue found in the frontend Dockerfile where the command npm run local was specified. Since there is no local script in package.json, this command would cause the Docker container to fail to start. I have updated the Dockerfile to execute the dev script instead, which aligns with the existing scripts defined in package.json and ensures that the Docker container for the frontend can start and run without issues.

Related Issues

Steps to Test

  1. Pull down the branch associated with this pull request.
  2. Navigate to the root directory of the project.
  3. Run docker-compose build to rebuild the frontend service with the updated Dockerfile.
  4. Start the services using docker-compose up.
  5. Open a web browser and navigate to http://localhost:3000 to ensure that the frontend service is running and accessible.

Screenshots (if applicable)

N/A (The change is in the configuration file and does not affect the visual aspect of the application.)

Checklist

salahlalami commented 8 months ago

@Jeetpal1 Thank you