brigate/Dockerfile.build

13 lines
189 B
Docker
Raw Normal View History

2020-04-27 00:03:18 +02:00
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"]