|
|
|
FROM bladex/alpine-java:openjdk8-openj9_cn_slim
|
|
|
|
|
|
|
|
MAINTAINER h5u@163.com
|
|
|
|
|
|
|
|
RUN mkdir -p /logpm/distribution
|
|
|
|
|
|
|
|
WORKDIR /logpm/distribution
|
|
|
|
|
|
|
|
EXPOSE 8600
|
|
|
|
|
|
|
|
ADD ./target/logpm-distribution.jar ./app.jar
|
|
|
|
|
|
|
|
ENV JAVA_OPTS="-Xms512m -Xmx1024m"
|
|
|
|
|
|
|
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"]
|
|
|
|
CMD ["--spring.profiles.active=test"]
|