cloudup.dev icon indicating copy to clipboard operation
cloudup.dev copied to clipboard

Optimize and Clean Up Dockerfile for Node.js Application

Open am-nimrah opened this issue 1 year ago • 2 comments

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

am-nimrah avatar Jan 13 '24 09:01 am-nimrah

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

Thank you! 🌟

sheharyarn avatar Jan 15 '24 00:01 sheharyarn