diff --git a/scripts/buildDocker.sh b/scripts/buildDocker.sh index cfc802c..b026b6c 100755 --- a/scripts/buildDocker.sh +++ b/scripts/buildDocker.sh @@ -1,8 +1,8 @@ #!/bin/bash ## By João Medeiros - -version='v1.0.0' +read -p "New Tag Version: " version -yarn build -yarn build:view -sudo docker build -t joaomede/auto-deploy-docker:${version} . +sudo docker run -it --rm -v $(pwd):/usr/src/app joaomede/nodejs12prod:1.0 yarn build:view +sudo docker run -it --rm -v $(pwd):/usr/src/app joaomede/nodejs12prod:1.0 yarn build +sudo docker build -t joaomede/auto-deploy-docker:${version} . \ No newline at end of file