added .m2 volume do Dockerfiles

This commit is contained in:
hllvc 2021-07-10 22:01:08 +02:00
parent b5f78e65ca
commit 94e6dbc7ff
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
FROM openjdk:8-jdk-alpine
VOLUME [ ".m2" ]
VOLUME [ "/app" ]
WORKDIR /app
COPY .mvn .mvn

View file

@ -1,4 +1,5 @@
FROM openjdk:8-jre-alpine
VOLUME [ ".m2" ]
VOLUME [ "/app" ]
WORKDIR /app
EXPOSE 8080