comparison docker/backend-dev/Dockerfile @ 4188:5a835b320726

docker (backend-dev): update Debian version + getting OMEMO related packages from git is not necessary anymore
author Goffi <goffi@goffi.org>
date Mon, 11 Dec 2023 00:53:59 +0100
parents 512487ce3579
children
comparison
equal deleted inserted replaced
4187:3b64b503f250 4188:5a835b320726
1 FROM debian:bullseye-slim 1 FROM debian:bookworm-slim
2 2
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" 3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
4 4
5 ARG REVISION 5 ARG REVISION
6 ARG DEBIAN_FRONTEND=noninteractive 6 ARG DEBIAN_FRONTEND=noninteractive
31 31
32 RUN apt-get install -y --no-install-recommends libsodium-dev 32 RUN apt-get install -y --no-install-recommends libsodium-dev
33 USER libervia 33 USER libervia
34 RUN python3 -m venv --system-site-packages libervia_env && libervia_env/bin/pip install -U pip wheel 34 RUN python3 -m venv --system-site-packages libervia_env && libervia_env/bin/pip install -U pip wheel
35 35
36 # temporary needed for new OMEMO
37 RUN libervia_env/bin/pip install protobuf==3.20 && \
38 libervia_env/bin/pip install git+https://github.com/Syndace/python-xeddsa.git@stable && \
39 libervia_env/bin/pip install git+https://github.com/Syndace/python-x3dh.git@stable && \
40 libervia_env/bin/pip install git+https://github.com/Syndace/python-doubleratchet.git@stable && \
41 libervia_env/bin/pip install git+https://github.com/Syndace/python-omemo.git@stable && \
42 libervia_env/bin/pip install git+https://github.com/Syndace/python-oldmemo.git && \
43 libervia_env/bin/pip install git+https://github.com/Syndace/python-twomemo.git
44
45 RUN cd /src && \ 36 RUN cd /src && \
46 # We install thoses packages in editable mode, so we can replace them easily with volumes. 37 # We install thoses packages in editable mode, so we can replace them easily with volumes.
47 # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting 38 # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting
48 # local repos without it them cause troubles 39 # local repos without it them cause troubles
49 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \ 40 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \