13 lines
189 B
Docker
13 lines
189 B
Docker
|
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"]
|