-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM azul/zulu-openjdk-centos:8u412-8.78
RUN rm -rf /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
VOLUME /etc/zhiqingyun/conf
VOLUME /var/lib/zhiqingyun
ARG ADMIN_PASSWORD='admin123'
ARG ACTIVE_ENV='docker'
ARG LOG_LEVEL='info'
COPY ./spark-yun-backend/spark-yun-main/build/libs/zhiqingyun.jar /opt/zhiqingyun/zhiqingyun.jar
COPY ./spark-yun-backend/spark-yun-main/src/main/resources/application-docker.yml /etc/zhiqingyun/conf/
COPY ./resources/jdbc/system /var/lib/zhiqingyun-system
# 可选:默认打包自带arthas
RUN yum install unzip -y
RUN curl -L -o /tmp/arthas-bin.zip https://github.com/alibaba/arthas/releases/download/arthas-all-4.1.5/arthas-bin.zip
RUN unzip -d /opt/arthas /tmp/arthas-bin.zip
EXPOSE 8080
ENV ADMIN_PASSWORD=${ADMIN_PASSWORD}
ENV ACTIVE_ENV=${ACTIVE_ENV}
ENV LOG_LEVEL=${LOG_LEVEL}
ENV PARAMS=""
ENV JVMOPTIONS=""
ENTRYPOINT ["sh","-c","java $JVMOPTIONS -jar /opt/zhiqingyun/zhiqingyun.jar --logging.level.root=${LOG_LEVEL} --spring.profiles.active=${ACTIVE_ENV} --isx-app.admin-passwd=${ADMIN_PASSWORD} --spring.config.additional-location=/etc/zhiqingyun/conf/ $PARAMS"]