-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (37 loc) · 1.02 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM docker.io/alpine:3.18
RUN apk add --no-cache \
python3 py3-pip py3-setuptools py3-wheel \
py3-virtualenv \
py3-pillow \
py3-aiohttp \
py3-magic \
py3-ruamel.yaml \
py3-commonmark \
py3-phonenumbers \
# Other dependencies
ffmpeg \
ca-certificates \
su-exec \
# encryption
py3-olm \
py3-cffi \
py3-pycryptodome \
py3-unpaddedbase64 \
py3-future \
bash \
curl \
jq \
yq
COPY requirements.txt /opt/whatsapp-cloud/requirements.txt
COPY requirements-dev.txt /opt/whatsapp-cloud/requirements-dev.txt
WORKDIR /opt/whatsapp-cloud
RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \
&& pip3 install -r requirements.txt \
&& apk del .build-deps
COPY . /opt/whatsapp-cloud
RUN apk add git && pip3 install .[all] && apk del git \
# This doesn't make the image smaller, but it's needed so that the `version` command works properly
&& cp whatsapp_matrix/example-config.yaml . && rm -rf whatsapp_matrix
ENV UID=1337 GID=1337
VOLUME /data
CMD ["/opt/whatsapp-cloud/docker-run.sh"]