Add docker builder env

This commit is contained in:
sfigato 2020-04-27 00:03:18 +02:00
parent c39efa9cb3
commit b55e96c8a5
Signed by untrusted user: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/build/
/target/
/.m2/

12
Dockerfile.build Normal file
View File

@ -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"]