Dockerfile 700 B

1234567891011121314151617181920212223
  1. # Dockerfile for apollo-admin-server
  2. # Build with:
  3. # docker build -t apollo-admin-server:v1.0.0 .
  4. FROM openjdk:8-jre-alpine3.8
  5. RUN \
  6. echo "http://mirrors.aliyun.com/alpine/v3.8/main" > /etc/apk/repositories && \
  7. echo "http://mirrors.aliyun.com/alpine/v3.8/community" >> /etc/apk/repositories && \
  8. apk update upgrade && \
  9. apk add --no-cache procps curl bash tzdata && \
  10. ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
  11. echo "Asia/Shanghai" > /etc/timezone && \
  12. mkdir -p /apollo-admin-server
  13. ADD . /apollo-admin-server/
  14. ENV APOLLO_ADMIN_SERVICE_NAME="service-apollo-admin-server.sre"
  15. EXPOSE 8090
  16. CMD ["/apollo-admin-server/scripts/startup-kubernetes.sh"]