Dockerfile 702 B

123456789101112131415
  1. # Copyright IBM Corp, All Rights Reserved.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. #
  5. FROM node:8.9 as build_js
  6. MAINTAINER haitao yue "hightall@me.com"
  7. RUN cd /tmp && git clone -b 'v0.9.0-beta' --single-branch --depth 1 https://github.com/hyperledger/cello.git
  8. RUN cp -r /tmp/cello/src/static /var/www
  9. RUN cd /var/www/dashboard && npm install && npm run build
  10. FROM hyperledger/cello-baseimage:x86_64-0.9.0-beta
  11. COPY --from=build_js /var/www/dist /app/static/dist
  12. COPY --from=build_js /tmp/cello/src/celery.conf /etc/supervisor/conf.d/
  13. CMD /etc/init.d/supervisor start && if [ "$DEBUG" = "True" ]; then python dashboard.py ; else gunicorn -w 1 --worker-class eventlet -b 0.0.0.0:8080 dashboard:app ;fi