Skip to content

Conversation

@GOKU0735
Copy link

@GOKU0735 GOKU0735 commented Oct 9, 2025

Problem

The Docker build failed initially due to the server using an outdated Node.js version and a missing production start script in package.json. Additionally, the build context was too large.

Solution

  • Updated the Node.js base image to node:18-alpine in the Dockerfile.
  • Added the required start-prod script to server/package.json.
  • Added a .dockerignore file to prevent copying unnecessary files during build.
  • Fixed port conflicts and corrected the ports section in docker-compose.yml.
  • Ensured all dependencies were properly installed and the compose setup now works as expected.

Result

All containers (MongoDB, server, client) now build and run successfully, and the application is accessible via the client port.

@netlify
Copy link

netlify bot commented Oct 9, 2025

👷 Deploy request for accountill pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 682205b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant