# Dockerfile for apollo-admin-server # Build with: # docker build -t apollo-admin-server:v1.0.0 . FROM openjdk:8-jre-alpine3.8 RUN \ echo "http://mirrors.aliyun.com/alpine/v3.8/main" > /etc/apk/repositories && \ echo "http://mirrors.aliyun.com/alpine/v3.8/community" >> /etc/apk/repositories && \ apk update upgrade && \ apk add --no-cache procps curl bash tzdata && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone && \ mkdir -p /apollo-admin-server ADD . /apollo-admin-server/ ENV APOLLO_ADMIN_SERVICE_NAME="service-apollo-admin-server.sre" ENV DATASOURCES_URL="jdbc:mysql://service-mysql-for-apollo.sre:3306/ApolloConfigDB?characterEncoding=utf8" ENV DATASOURCES_USERNAME="FillInCorrectUser" ENV DATASOURCES_PASSWORD="FillInCorrectPassword" EXPOSE 8090 ENTRYPOINT ["/apollo-admin-server/entrypoint.sh"] CMD ["/apollo-admin-server/scripts/startup-kubernetes.sh"]