mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
Build app inside container with docker-compose
This commit is contained in:
parent
626ec86620
commit
f661395d85
1 changed files with 10 additions and 0 deletions
10
docker-compose-build.yml
Normal file
10
docker-compose-build.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: '2'
|
||||
services:
|
||||
app:
|
||||
image: "maven:3.3.9-jdk-8-alpine"
|
||||
command: "mvn clean package"
|
||||
restart: "no"
|
||||
working_dir: "/usr/src/app"
|
||||
volumes:
|
||||
- ".:/usr/src/app"
|
||||
- "$HOME/.m2:/root/.m2"
|
Loading…
Reference in a new issue