You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
307 B

# 使用openjdk8的镜像
FROM openjdk:8-jre
ENV PARAMS="--spring.profiles.active=docker"
# 设置工作目录
WORKDIR /build
# 将jar包复制到容器中
ADD ./austin-web/target/austin-web-0.0.1-SNAPSHOT.jar ./austin.jar
# 运行jar包
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS austin.jar $PARAMS"]