Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapvs/maven-docker
Low profile maven docker image on alpine linux
https://github.com/sapvs/maven-docker
alpine docker low-profile maven
Last synced: about 2 months ago
JSON representation
Low profile maven docker image on alpine linux
- Host: GitHub
- URL: https://github.com/sapvs/maven-docker
- Owner: sapvs
- License: mit
- Created: 2022-08-21T13:17:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T03:50:13.000Z (3 months ago)
- Last Synced: 2024-10-24T21:00:56.181Z (2 months ago)
- Topics: alpine, docker, low-profile, maven
- Language: Dockerfile
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/sapvs/maven-docker)