Dockerfile_arm64 867 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM jimmytinsley/makegcc-golang
  2. LABEL maintainer laiwei.ustc@gmail.com
  3. USER root
  4. ENV FALCON_DIR=/open-falcon PROJ_PATH=${GOPATH}/src/github.com/open-falcon/falcon-plus
  5. RUN mkdir -p $FALCON_DIR && \
  6. mkdir -p $FALCON_DIR/logs && \
  7. apk add --no-cache ca-certificates bash git supervisor
  8. COPY . ${PROJ_PATH}
  9. WORKDIR ${PROJ_PATH}
  10. RUN make all \
  11. && make pack4docker \
  12. && tar -zxf open-falcon-v*.tar.gz -C ${FALCON_DIR} \
  13. && rm -rf ${PROJ_PATH}
  14. # Final container;
  15. FROM alpine:3.7
  16. LABEL maintainer laiwei.ustc@gmail.com
  17. USER root
  18. ENV FALCON_DIR=/open-falcon
  19. RUN mkdir -p $FALCON_DIR/logs && \
  20. apk add --no-cache ca-certificates bash git supervisor
  21. ADD docker/supervisord.conf /etc/supervisord.conf
  22. COPY --from=0 ${FALCON_DIR} ${FALCON_DIR}
  23. EXPOSE 8433 8080
  24. WORKDIR ${FALCON_DIR}
  25. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]