To push a new (or updated) Dockerfile to Docker Hub:
Create a Docker image:
docker build -t <DOCKER_HUB_ID>/<REPOSITORY>:<TAG> <DOCKERFILE_PATH> --platform linux/amd64
# Exemple: docker build -t yperteam/circleci-python:3.10 .The --platform linux/amd64 option is only required on new Mac (with ARM chip)
Check that the images is created:
docker imagesThen, log in:
docker logincredentials are in 1Password
And, push it to Hub:
docker push <IMAGE_NAME>:<TAG>
# Exemple: docker push yperteam/circleci-python:3.10