FROM docker.dever.cc/office/libreoffice:latest

MAINTAINER Rabin "https://github.com/shemic"

ENV DEMETER_HOME=/usr/local/convert
ENV DEMETER_CONF=env
ENV PATH=$PATH:$DEMETER_HOME

RUN apk add --no-cache --update gcc curl gcc g++ python-dev py-pip && \
	pip install --upgrade pip && \
	pip install redis && \
	pip install -U git+http://git.dever.cc:3000/python/demeter.git && \
	git clone http://git.dever.cc:3000/python/convert.git $DEMETER_HOME && \
	#chmod -R +x $DEMETER_HOME/*.py && \
	apk del curl gcc g++ python-dev

EXPOSE 8087 8088

#COPY convert.sh /entrypoint/convert.sh

#CMD ["convert"]