diff --git a/.gitignore b/.gitignore index 84c048a..b906aff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /build/ +/target/ +/.m2/ diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000..e1d6b99 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,12 @@ +FROM maven:latest +ARG uid=1000 +ARG gid=1000 + +RUN groupadd -g ${gid} app \ + && useradd -m -d /src -u ${uid} -g ${gid} app + +USER app +WORKDIR /src + +ENTRYPOINT ["mvn"] +CMD ["clean", "install"]