Optimized docker image size, added ":latest" tag to Makefile docker build commands

This commit is contained in:
DarkCat09 2023-03-03 17:16:40 +04:00
parent 8e6b0a39b2
commit 2135126235
2 changed files with 15 additions and 5 deletions

View file

@ -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}