management/back/dkha-sz-main/docker/Dockerfile

16 lines
557 B
Docker
Raw Normal View History

2023-12-18 13:12:25 +08:00
# 构建镜像执行命令【docker build -t renren_io:2.0 .】
FROM openjdk:8u212-jre
MAINTAINER Mark
# 时区问题
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
# 字体
COPY fonts/simsun.ttc /usr/share/fonts/simsun.ttc
ADD apache-skywalking-apm-bin/agent/ /agent
ENTRYPOINT ["java", "-server", "-Xms512M", "-Xmx512M", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=UTF-8", "-XX:+HeapDumpOnOutOfMemoryError", "-javaagent:/agent/skywalking-agent.jar", "-jar", "/app/app.jar" ]