Docker: Updated the dockerfile and deploy script to better use docker cacheing
This commit is contained in:
10
deploy.sh
10
deploy.sh
@ -12,6 +12,16 @@ else
|
||||
./version_bump.sh
|
||||
fi
|
||||
|
||||
# Download the package.json for caching
|
||||
curl --silent 'https://git.tanshu.com/tanshu/barker/raw/tag/latest/bookie/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/barker/raw/tag/latest/barker/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 barker:latest .
|
||||
cd "$parent_path/docker" || exit
|
||||
|
||||
Reference in New Issue
Block a user