25 lines
1.5 KiB
Plaintext
25 lines
1.5 KiB
Plaintext
# 基础镜像
|
|
FROM gitlink-java:#base_image_version
|
|
# 复制jar文件到路径
|
|
COPY ./jar/ruoyi-modules-wiki.jar /home/gitlink/ruoyi-modules-wiki.jar
|
|
ADD ./wkhtmltox_packages/wkhtmltox_0.12.6-1.stretch_amd64.deb /data/wkhtmltox_0.12.6-1.stretch_amd64.deb
|
|
ADD ./wkhtmltox_packages/simsun.ttc /usr/share/fonts/simsun.ttc
|
|
# 添加阿里云源
|
|
RUN echo 'deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list \
|
|
&& echo 'deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list \
|
|
&& echo 'deb https://mirrors.aliyun.com/debian-security/ bullseye-security main' >> /etc/apt/sources.list
|
|
RUN apt-get update && apt-get --fix-broken install -y libjpeg62-turbo libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base && dpkg -i /data/wkhtmltox_0.12.6-1.stretch_amd64.deb && rm -rf /data/wkhtmltox_0.12.6-1.stretch_amd64.deb
|
|
# 清理临时文件
|
|
RUN apt-get -y autoremove && apt-get -y clean
|
|
# 启动系统服务
|
|
ENTRYPOINT java -javaagent:/home/gitlink/skywalking-agent/skywalking-agent.jar \
|
|
-Dskywalking.agent.service_name=#deploy_env::ruoyi-modules-wiki \
|
|
-Dskywalking.collector.backend_service=#skywalking_backend_service \
|
|
-Dcsp.sentinel.dashboard.server=#sentinel_ip:#sentinel_port \
|
|
-Dcsp.sentinel.app.name=ruoyi-modules-wiki \
|
|
-jar ruoyi-modules-wiki.jar \
|
|
--nacos_ip=#nacos_ip \
|
|
--nacos_port=#nacos_port \
|
|
--nacos_username=#nacos_username \
|
|
--nacos_password=#nacos_password \
|
|
--spring.profiles.active=prod |