Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 429 Bytes

README.md

File metadata and controls

executable file
·
21 lines (14 loc) · 429 Bytes

Maven Alpine Image

Minimal maven image with low footprint alpine linux base.

Using this image

Copy/mount the source directories to the container and build

MVN_REPO=/home/user/.m2
CODE_BASE=/home/user/javaproject
docker run --rm \
  --volume ${MVN_REPO}:/root/.m2 \
  --volume ${CODE_BASE}:/app \
  --workdir /app vsaps/maven:latest mvn install

Source

github repo