Build app inside container with docker-compose

This commit is contained in:
José Armesto 2017-04-02 14:07:59 +02:00
parent 626ec86620
commit f661395d85
No known key found for this signature in database
GPG key ID: C10B9C02529D58DB

10
docker-compose-build.yml Normal file
View 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"