Dockerfile 951 B

12345678910111213141516171819202122232425262728
  1. # CPEE Image
  2. FROM ruby:2.6-alpine
  3. ENV CPEE_VERSION="1.5.19"
  4. RUN apk add --no-cache --virtual .build-deps \
  5. curl \
  6. ruby-dev \
  7. rasqal-dev \
  8. raptor2-dev \
  9. build-base \
  10. icu-dev \
  11. && gem install nokogiri \
  12. && gem install cpee -v $CPEE_VERSION \
  13. # && apk del .build-deps \
  14. # && apk add libcurl \
  15. && cpee new /cpee-server \
  16. && cpee cpui /cpee-cockpit \
  17. && ln -s /cpee-cockpit/themes/default/symbols/ /cpee-cockpit/themes/preset/symbols \
  18. && mkdir /cpee-cockpit/themes/labels \
  19. && mkdir /cpee-server/archive \
  20. && echo "* */12 * * * cpee archive /cpee-server/archive/ http://localhost:8298/*" >> /etc/crontabs/root \
  21. && cp -r /cpee-cockpit/themes/default/* /cpee-cockpit/themes/labels/ \
  22. && cpee inst /cpee-server/start
  23. WORKDIR /cpee-server
  24. COPY /cpee/processes/ ../cpee-cockpit/testsets/
  25. COPY /cpee/start.sh /cpee-server/
  26. RUN chmod +x ./start.sh
  27. CMD ["./start.sh"]