halo/Dockerfile

17 lines
333 B
Docker

FROM adoptopenjdk/openjdk8-openj9
VOLUME /tmp
ARG JAR_FILE=build/libs/halo.jar
ARG PORT=8090
ARG TIME_ZONE=Asia/Shanghai
ENV TZ=${TIME_ZONE}
ENV JVM_XMS="256m"
ENV JVM_XMX="256m"
COPY ${JAR_FILE} halo.jar
EXPOSE ${PORT}
ENTRYPOINT java -Xms${JVM_XMS} -Xmx${JVM_XMX} -Djava.security.egd=file:/dev/./urandom -server -jar halo.jar