Made docker utilizes cache mechanism. also change entrypoint #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I found that docker build takes really long with current Dockerfile and I thought I can help u with it.
This PR significantly decreases build time. More specifically, when u change source files, because it's nothing to do with dependency list, u can completely skip dependency install step which is huge.
so I made following changes:
--mount=type=cache
to utilize cache type mount which persists between build layers./bin/bash
to/root/Mergen/build/lifter
so that u can directly dodocker run -it --rm mergen FILEPATH ADDRESS
. Cuz I didnt see the benefit of going into bash. If there's any benefit of run bash than directly lifter bin, tell mespeed in action in my env
These are the build logs for
When I make small change to cpp files it took 2.6 seconds to build. became way faster

When I add curl to dependency list, it takes 366 seconds to build which is ok cuz it's dependency build. maybe i can make it faster tho but it's out of scope for now.

Also since i changed the entrypoint, u have to mount the directory into container like this
docker run --rm -v /Users/vxcall/Downloads:/root/Mergen/data mergen /root/Mergen/data/devirtualizeme.exe 0xADDRESS