dockerfile-maven-plugin

How's spotify dockerfile-maven-plugin uses “docker-compose build”?

狂风中的少年 提交于 2019-12-13 00:09:41
问题 From the docs https://github.com/spotify/dockerfile-maven, it says: For example, a docker-compose.yml might look like: service-a: build: a/ ports: - '80' service-b: build: b/ links: - service-a Now, docker-compose up and docker-compose build will work as expected. But how to write the pom.xml file, still like as if not using compose? Set the goal to be "build"? <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> <executions> <execution> <id>default</id>