DokcerFile 镜像定制

https://www.cnblogs.com/chenyangqit/p/15077084.html

Dockerfile主要组成部分

基础镜像信息 FROM centos:7.9 
制作镜像操作指令 RUN yum install -y nginx 
容器启动时执行指令 CMD ["/bin/bash"]

# 构建镜像,执行命令:【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" ]

 

 

 

 



posted @ 2021-07-30 10:56  小蚊子大人KN  阅读(42)  评论(0编辑  收藏  举报