Created
July 14, 2022 03:20
-
-
Save minikomi/8e6a029eb9e36afc4ddce559fe76845c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function midway-docker | |
set tmpfile (mktemp /tmp/midway-docker.XXXXXXXX) | |
head -n $argv[1] $argv[2] > $tmpfile | |
docker build . -f $tmpfile -t "temp-build" | |
docker run --entrypoint /bin/bash -it "temp-build" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment