podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Any way to build from git like in normal docker-compose?

Open zabihexes opened this issue 3 years ago • 1 comments

https://docs.docker.com/engine/reference/commandline/build/#git-repositories

Example yaml.

services:
    test:
        build:
            context: https://github/user/repository.git#prod
            dockerfile: Dockerfile
        container_name: test
        restart: unless-stopped

This would build the image from the specified repository from branch prod.

Thanks

zabihexes avatar Jun 14 '22 19:06 zabihexes

Yes, this doesn't work with 1.2.0 yet apparently.

dploeger avatar Dec 28 '24 19:12 dploeger