Skip to content

Instantly share code, notes, and snippets.

@nicosingh
Last active August 17, 2021 20:52
Show Gist options
  • Save nicosingh/e28b69ca0e3d9146eab278ef37950525 to your computer and use it in GitHub Desktop.
Save nicosingh/e28b69ca0e3d9146eab278ef37950525 to your computer and use it in GitHub Desktop.
# clone sample repo
git clone https://gitlab.com/nicosingh/demo-flask-application.git
cd demo-flask-application
# log into gitlab container registry
docker login registry.gitlab.com
# init buildx
docker buildx create --use
# build and push docker image
docker buildx build \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le \
--tag registry.gitlab.com/nicosingh/demo-flask-application:latest \
--push \
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment