Dockerfile 469 字节
Newer Older
sq3536's avatar
sq3536 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

FROM openjdk:8-jre-alpine3.9
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    IBIZ_SLEEP=0 \
    JAVA_OPTS=""

CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
    sleep ${IBIZ_SLEEP} && \
    java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /ibztask.jar

EXPOSE 40005

ADD ibztask.jar /ibztask.jar

#docker buildx build --platform linux/arm64,linux/amd64 -t ibiz4j/ibizlab-task:1.0.47 -t ibiz4j/ibizlab-task:latest --push .