forked from matrix-org/pantalaimon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (18 loc) · 794 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.8-slim-buster AS builder
RUN mkdir -p /app
RUN apt-get update && apt-get install -y git gcc clang cmake g++ pkg-config python3-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
RUN pip --no-cache-dir install --upgrade pip setuptools wheel
COPY . /app
RUN pip wheel . --wheel-dir /wheels --find-links /wheels
FROM python:3.8-slim-buster AS run
COPY --from=builder /usr/lib/libolm* /usr/lib/
COPY --from=builder /wheels /wheels
WORKDIR /app
RUN pip --no-cache-dir install --find-links /wheels --no-index pantalaimon
VOLUME /data
ENTRYPOINT ["pantalaimon"]
CMD ["-c", "/data/pantalaimon.conf", "--data-path", "/data"]