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.

16 lines
447 B
Docker

# 设置基础镜像
FROM registry.cn-beijing.aliyuncs.com/longbei/jdk:latest
WORKDIR /data/intro-robot/
# 复制java jar 到容器中
COPY interro_robot-0.0.1-SNAPSHOT.jar /data/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 8891
# 设置启动命令
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]