Mount package caches in dev-docker

This commit is contained in:
2018-11-05 21:55:22 +01:00
parent 5e574fb06c
commit 6955d37eef

View File

@@ -165,8 +165,13 @@ alias grm='git fetch origin master && git rebase origin/master && git push -f'
alias sudo='sudo -E '
alias su='su -m'
alias dev-docker='docker run --rm --user root \
alias dev-docker='mkdir -p $HOME/.{gradle,npm,pub-cache,android} && \
docker run --rm --user root \
--mount type=bind,source=$PWD,target=/home/build/project \
--mount type=bind,source=$HOME/.npm,target=/home/build/.npm \
--mount type=bind,source=$HOME/.gradle,target=/home/build/.gradle \
--mount type=bind,source=$HOME/.pub-cache,target=/home/build/.pub-cache \
--mount type=bind,source=$HOME/.android,target=/home/build/.android \
--interactive --tty dasfoo/dev:latest \
-u$(id -u) -g$(id -g) bash -c'