How to ship the exact environment together with a julia script

See How to install packages which are needed only for development - #2 by fredrikekre for a related discussion. In contrast to that case you most likely want to keep @stdlib though.