Skip to content

Instantly share code, notes, and snippets.

@minikomi
Created July 14, 2022 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minikomi/8e6a029eb9e36afc4ddce559fe76845c to your computer and use it in GitHub Desktop.
Save minikomi/8e6a029eb9e36afc4ddce559fe76845c to your computer and use it in GitHub Desktop.
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