Commit 16440b76 authored by xfxmcy's avatar xfxmcy

异常

parent 5f501cb9
FROM java:8
ENV BASE_NAME zx-education
WORKDIR /$BASE_NAME
COPY target/$BASE_NAME-1.0.0.jar /$BASE_NAME/$BASE_NAME.jar
COPY src/main/resources/logback-spring.xml /$BASE_NAME/config/logback-spring.xml
ENV LANG C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
VOLUME /$BASE_NAME/config /$BASE_NAME/logs
ENTRYPOINT ["/bin/sh","-c","java -server -Xmx512m -Xms512m -Xss1024K -XX:PermSize=64m -XX:MaxPermSize=128m -XX:-UseGCOverheadLimit -Djava.security.egd=file:/dev/./urandom -jar $BASE_NAME.jar"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment