FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER tangyi(<EMAIL>)
ADD ["target/gateway-service.jar", "app.jar"]
EXPOSE 8000
ENV JAVA_OPTS="-Xdebug -Dspring.profiles.active=native -jar -Xmn128m -Xms128m"
RUN sh -c 'touch /app.jar'
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar /app.jar" ]