Optimized docker image size, added ":latest" tag to Makefile docker build commands
This commit is contained in:
parent
8e6b0a39b2
commit
2135126235
2 changed files with 15 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -31,7 +31,9 @@ clean:
|
|||
rm -rf .mypy_cache
|
||||
|
||||
cmd-docker-build:
|
||||
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$${VERSION} .
|
||||
docker build \
|
||||
-t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:latest \
|
||||
-t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$${VERSION} .
|
||||
|
||||
cmd-docker-push:
|
||||
docker push ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$$VERSION
|
||||
docker push -a ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}
|
||||
|
|
Loading…
Add table
Reference in a new issue