Low profile maven docker image on alpine linux
971
Minimal maven image with low footprint alpine linux base.
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
Content type
Image
Digest
sha256:84c8eab6e…
Size
84.9 MB
Last updated
almost 2 years ago
docker pull vsaps/maven