Skip to content

Extremely small Docker-Compose image built with Alpine Linux (latest) that's only 35MB when pulled locally

License

Notifications You must be signed in to change notification settings

robpco/docker-compose-alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported tags and Dockerfile links

Tags correspond to the docker-compose version used in the image

DOCKER-COMPOSE-ALPINE

Extremely small Docker-Compose image built with Alpine:Latest that's only 40M.

GitHub Repo: https://github.com/robpco/docker-compose-alpine

Docker Hub Image: https://hub.docker.com/r/robpco/docker-compose-alpine

USING THIS IMAGE AS LOCAL COMMAND

Pull the image with:

docker pull robpco/docker-compose-alpine

Configure your system to use this image as a local command by creating an alias in .bashrc:

alias docker-compose='docker run --rm -t $(tty &>/dev/null && echo "-i") robpco/docker-compose-alpine'

ADVANCED CONFIGURATION

To use a specific version of docker-compose (that's not available via an image tag):

  • clone this repo locally
  • edit the Dockerfile and set DOCKER_COMPOSE_VERSION to the required version
    • note: the version specified must be available on PyPi
  • build your adjusted Dockerfile with a unique tag: docker build -t docker-compose-alpine:${UNIQUE_VERSION} .
  • use as described above, but use your unique tag when defining the alias