2019-12-07 09:43:40 -05:00
|
|
|
FROM python:3.8-slim-buster
|
2019-10-01 21:27:48 -04:00
|
|
|
|
|
|
|
# Many of these dependencies are required to build the app's dependencies, so staging these out doesn't help much
|
|
|
|
RUN mkdir -p /app
|
|
|
|
RUN apt-get update && apt-get install -y git gcc clang cmake pkg-config libdbus-1-dev libglib2.0-dev libcairo2-dev python3-dev libgirepository1.0-dev wget
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
RUN wget https://gitlab.matrix.org/matrix-org/olm/-/archive/master/olm-master.tar.bz2 \
|
|
|
|
&& tar -xvf olm-master.tar.bz2 \
|
|
|
|
&& cd olm-master && make && make PREFIX="/usr" install && cd ../ \
|
|
|
|
&& rm -r olm-master
|
|
|
|
|
|
|
|
COPY . /app
|
2019-10-09 07:35:46 -04:00
|
|
|
RUN pip install . PyGObject && python setup.py install
|
2019-10-01 21:27:48 -04:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["pantalaimon"]
|
2019-10-03 00:10:59 -04:00
|
|
|
CMD ["-c", "/data/pantalaimon.conf", "--data-path", "/data"]
|