1234567891011121314151617181920212223242526272829303132333435 |
- FROM registry.cn-hangzhou.aliyuncs.com/zhengqing/openjdk:8-jdk-alpine
- MAINTAINER Zenas
- ARG APP_NAME
- ARG APP_PORT
- ARG JAVA_OPTS
- ENV APP_NAME ${APP_NAME}
- ENV APP_JAR wk_${APP_NAME}-0.0.1-SNAPSHOT.jar
- ENV APP_PORT ${APP_PORT}
- ENV JAVA_OPTS ${JAVA_OPTS}
- ADD ${APP_JAR} /home/
- RUN sh -c 'touch /'
- VOLUME /tmp
- EXPOSE ${APP_PORT}
- CMD ["sh", "-c", "echo \"****** 运行命令:java -jar ${JAVA_OPTS} /home/${APP_JAR}\" & java -jar ${JAVA_OPTS} /home/${APP_JAR}"]
|