Docker: Change the dockerfile to better use caching.

This commit is contained in:
2021-10-31 18:47:25 +05:30
parent 0574f9df14
commit 6b176c22dc
2 changed files with 30 additions and 3 deletions

View File

@ -13,6 +13,17 @@ else
./version_bump.sh
fi
# Download the package.json for caching
curl --silent 'https://git.tanshu.com/tanshu/brewman/raw/tag/latest/overlord/package.json' \
| sed 's/\"version\": \"[0-9\.]*\"/"version": "0.0.0"/g' \
> "$parent_path/docker/app/package.json"
# Download the package.json for caching
curl --silent 'https://git.tanshu.com/tanshu/brewman/raw/tag/latest/brewman/pyproject.toml' \
| sed 's/version = \"[0-9\.]*\"/version = "0.0.0"/g' \
> "$parent_path/docker/app/pyproject.toml"
cd "$parent_path/docker/app" || exit
docker build --tag brewman:latest .
cd "$parent_path/docker" || exit