12345678910111213141516171819202122232425262728 |
- # CPEE Image
- FROM ruby:2.6-alpine
- ENV CPEE_VERSION="1.5.19"
- RUN apk add --no-cache --virtual .build-deps \
- curl \
- ruby-dev \
- rasqal-dev \
- raptor2-dev \
- build-base \
- icu-dev \
- && gem install nokogiri \
- && gem install cpee -v $CPEE_VERSION \
- # && apk del .build-deps \
- # && apk add libcurl \
- && cpee new /cpee-server \
- && cpee cpui /cpee-cockpit \
- && ln -s /cpee-cockpit/themes/default/symbols/ /cpee-cockpit/themes/preset/symbols \
- && mkdir /cpee-cockpit/themes/labels \
- && mkdir /cpee-server/archive \
- && echo "* */12 * * * cpee archive /cpee-server/archive/ http://localhost:8298/*" >> /etc/crontabs/root \
- && cp -r /cpee-cockpit/themes/default/* /cpee-cockpit/themes/labels/ \
- && cpee inst /cpee-server/start
- WORKDIR /cpee-server
- COPY /cpee/processes/ ../cpee-cockpit/testsets/
- COPY /cpee/start.sh /cpee-server/
- RUN chmod +x ./start.sh
- CMD ["./start.sh"]
|