Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated and optimised Dockerfile and modified dockerignore #1245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abhayymishraa
Copy link
Contributor

What kind of change does this PR introduce?

  • This PR will fix the bug of Dockerfile and introduce an optimised image
  • This PR will also implement the env logic

Issue Number:

Screenshots/videos:

  • Screenshot from 2025-01-05 14-49-31
  • Screenshot from 2025-01-05 15-01-22

If relevant, did you update the documentation?
N/A

Summary
The Dockerfile has been optimized to include proper Yarn 4.4.0 installation from source, enhanced cleanup processes to
reduce image size, improved environment file handling, and explicit command execution, resulting in a more efficient and
reliable container build process.

Does this PR introduce a breaking change?
N/A

@abhayymishraa abhayymishraa requested a review from a team as a code owner January 5, 2025 10:01
Copy link

github-actions bot commented Jan 5, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 56bfe56

Copy link

codecov bot commented Jan 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5114356) to head (56bfe56).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1245   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          373       373           
  Branches        94        94           
=========================================
  Hits           373       373           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Dockerfile Outdated Show resolved Hide resolved
@DhairyaMajmudar
Copy link
Member

Thank you @abhayymishraa for the PR. One questions.... Dockerfile will become compatible with Windows machines also?

@abhayymishraa
Copy link
Contributor Author

@DhairyaMajmudar i ran a test in my friend's system (windows 11 ) . it worked smoothly

@abhayymishraa
Copy link
Contributor Author

@DhairyaMajmudar done ✔️

Copy link
Member

@jdesrosiers jdesrosiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unmaintainable. If this is the best way to install yarn, I think it's too soon to move away from corepack. Corepack isn't gone yet and it appears that Yarn doesn't have a reasonable path to installing without it yet. I say we wait until this situation improves before trying to remove corepack.

@abhayymishraa
Copy link
Contributor Author

yes , The curl is the way to get that specific package without any problem although i have a alternative i found out recently looking forward to soon make a pr with the changes

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.

✨ Enhancement: Update on Dockerfile Implementation for Windows Users
3 participants