#FROM openjdk:8 #LABEL name="rtosac" version="1.0.0" author="wsnet" maintainer="wsnet@wsmis.com" #COPY target/com.haitongauto.rtosac.jar rtosac-image.jar #CMD ["java","-jar","rtosac-image.jar"] FROM openjdk:8 #adoptopenjdk/openjdk8:ubi LABEL name="docker" version="1.0.0" author="wsnet" maintainer="wsnet@wsmis.com" COPY target/com.haitongauto.rtosac.jar rtosac-image.jar RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo 'Asia/Shanghai' >/etc/timezone EXPOSE 8083 ENV PROFILES_OPTS="" ENV JAVA_OPTS="" ENTRYPOINT [ "sh", "-c","java $PROFILES_OPTS $JAVA_OPTS -jar rtosac-image.jar" ]