sheharyarn / cloudup.dev

Tools to jump-start development on the Cloud ☁️
https://cloudup.dev
106 stars 11 forks source link

Optimize and Clean Up Dockerfile for Node.js Application #25

Open am-nimrah opened 8 months ago

am-nimrah commented 8 months ago

The Dockerfile has been streamlined by removing unnecessary comments and improving readability. The ARG NODE_VERSION="14" sets a default Node.js version, and unnecessary comments and placeholders were eliminated for brevity. The --production and --no-optional flags were added to the npm install command to exclude dev dependencies, reducing the image size. Exposed port 3000 was set as a default, and unnecessary COPY statement was removed. Overall, the Dockerfile is now more concise while maintaining its functionality

sheharyarn commented 8 months ago

I've linked this issue to your PR. This will be automatically closed once your PR is merged.

Thank you! 🌟