Add docker builder env
This commit is contained in:
parent
c39efa9cb3
commit
b55e96c8a5
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
|||
/build/
|
||||
/target/
|
||||
/.m2/
|
||||
|
|
12
Dockerfile.build
Normal file
12
Dockerfile.build
Normal 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"]
|
Loading…
Reference in New Issue
Block a user