From b55e96c8a5b696f7e8acc6190dd0154e32241580 Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 27 Apr 2020 00:03:18 +0200 Subject: [PATCH] Add docker builder env --- .gitignore | 2 ++ Dockerfile.build | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile.build 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"]