docker run --rm \
-v currdir \
-e DEBUG=true \
--env-file prod.env \
-w dir \
/bin/bash -c "ginkgo"
  • –rm Automatically remove the container when it exits
  • -v Bind mount a volume
  • -e Set environment variables
  • –env-file Read in a file of environment variables
  • -w Working directory inside the container
  • bash -c Read commands from the following string