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

Improve dockerfile #210

Merged
merged 4 commits into from Jan 7, 2022
Merged

Improve dockerfile #210

merged 4 commits into from Jan 7, 2022

Conversation

tmikulin
Copy link
Contributor

@tmikulin tmikulin commented Jan 3, 2022

1.) Changed the parent docker image to buster slim (still debian based but a lot more slimmer)
2.) Added a separate flashbot user (for security), it doesn't run as the root user.
3.) Also worth mentioning, since the container now runs as a non root user you won't be able to install any stuff in the image.

The resulting docker image is half the size of the original one, which will come in handy with the CI/CD stuff.
I'm not sure how you handle the CI/CD part, I didn't find any build info (I guess for now you use git pull or something like that)

Tom

Dockerfile Outdated
# easter eggs 😝
RUN echo "PS1='🕵️:\[\033[1;36m\]\h \[\033[1;34m\]\W\[\033[0;35m\]\[\033[1;36m\]$ \[\033[0m\]'" >> ~/.bashrc
# easter eggs
RUN echo "PS1=':\[\033[1;36m\]\h \[\033[1;34m\]\W\[\033[0;35m\]\[\033[1;36m\]$ \[\033[0m\]'" >> ~/.bashrc
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lost the emojis!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added the emojis!

@lukevs
Copy link
Collaborator

lukevs commented Jan 3, 2022

Did some tests locally and all looks good!

Only comment is those emojis :)

Then good to go!

@lukevs lukevs merged commit dcdb4e4 into flashbots:main Jan 7, 2022
@lukevs
Copy link
Collaborator

lukevs commented Jan 7, 2022

Merged - thanks @tmikulin !!

@tmikulin
Copy link
Contributor Author

tmikulin commented Jan 7, 2022

np @lukevs

mendesfabio pushed a commit to mendesfabio/mev-inspect-py that referenced this pull request Nov 21, 2022
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.

None yet

2 participants