Skip to content

Dockerfile and docker-compose file for Python scripts

License

Notifications You must be signed in to change notification settings

suvambasak/docker-images

 
 

Repository files navigation

Docker Support

Docker support repository contains all the Dockerfile, Docker-Compose files with the source code of application components.

Table of Contents

Docker Image Building

There must be a docker file to build an image.

Build

docker image build -t username/image_name:image_tag .

Push to Docker Hub

A Docker Hub account is required.

docker login

Push the image to the Docker Hub.

docker push username/image_name:image_tag

Docker Buildx

Create Docker Image that supports multiple CPU architectures.

Create a new builder

docker buildx ls
docker buildx create --name crossbuild
docker buildx use crossbuild
docker buildx inspect --bootstrap

Build the image for multiple CPU architectures and push it to the Docker Hub

The image will be available for the CPU architecture:

  • linux/arm64
  • linux/amd64
  • linux/arm/v7
  • linux/arm/v6
docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7,linux/arm/v6 -t username/image_name:image_tag --push .

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.1%
  • HTML 20.1%
  • Dockerfile 14.8%
  • Shell 3.0%