<filename>Dockerfile
FROM openjdk:8-jre
MAINTAINER TBME Labs <<EMAIL>>

ENTRYPOINT ["/usr/bin/java", "-jar", "/home/serviceregistry/configuration-server.jar"]

ARG JAR_FILE
ADD target/${JAR_FILE} /home/serviceregistry/registry-server.jar

RUN useradd -ms /bin/bash serviceregistry
RUN chown serviceregistry /home/serviceregistry/registry-server.jar

USER serviceregistry
WORKDIR /home/serviceregistry
