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

Add minimal docker image to tun pyth-agent #81

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Add minimal docker image to tun pyth-agent #81

merged 2 commits into from
Oct 2, 2023

Conversation

146karol
Copy link
Contributor

The purpose of the PR is to add minimal docker image to run pyth-agent while keeping it to be able to build the program.

It was achieved using multi stage process:

  • first stage "builder" installs dependencies, gets code and perform build itself,
  • second stage installs just runtime dependencies.

Image build from the agent.Dockerfile has size 132 MB, while image build from Dockerfile has size around 5.65GB

@jayantk
Copy link
Contributor

jayantk commented Sep 29, 2023

thank you @146karol !

@146karol
Copy link
Contributor Author

@jayantk I added new line at the end of the file. Could you please re-trigger the workflow check?

@jayantk jayantk merged commit 94382f6 into pyth-network:main Oct 2, 2023
2 checks passed
@jayantk
Copy link
Contributor

jayantk commented Oct 2, 2023

thanks again! and appreciate you making CI pass -- i was just about to push a commit to this when i realized you already did it.

@kietng-alpha
Copy link

@jayantk Can we add a minimal tag for this? We would love to use this minimal image without rebuilding it.

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.

3 participants