You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
680 B
Docker
23 lines
680 B
Docker
# 设置基础镜像
|
|
FROM openjdk:8u201-jre-alpine
|
|
ENV TZ=Asia/Shanghai
|
|
ENV LANG=zh_CN.UTF-8
|
|
|
|
RUN apk --no-cache add tzdata msttcorefonts-installer fontconfig \
|
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
|
&& update-ms-fonts \
|
|
&& fc-cache -vf
|
|
|
|
WORKDIR /data/intro-robot/
|
|
# 复制java jar 到容器中
|
|
COPY interro_robot-0.0.1-SNAPSHOT.jar /opt/intro-robot/interro_robot-0.0.1-SNAPSHOT.jar
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
RUN chmod 777 /usr/local/bin/docker-entrypoint.sh
|
|
|
|
# 暴漏服务端口
|
|
EXPOSE 9800
|
|
|
|
# 设置启动命令
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |