ud3tn/dockerfiles/ud3tn-with-python-tools
Felix Walter 644d4fd162 dockerfiles: Update version and add missing dependencies
- add sqlite and jansson dependencies, which were missing
- use newest supported Python release

Closes: #238

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2025-06-05 17:03:39 +02:00

17 lines
505 B
Text

FROM python:3.13
COPY . /ud3tn
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y sqlite3 libjansson-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd /ud3tn \
&& ARCH=x86-64 make posix posix-lib -j4 \
&& cp /ud3tn/build/posix/ud3tn /usr/local/bin/ud3tn -v \
&& cp /ud3tn/build/posix/libud3tn.so /usr/local/lib/libud3tn.so -v \
&& make clean
RUN pip install --no-cache-dir /ud3tn/pyd3tn /ud3tn/python-ud3tn-utils
ENTRYPOINT [ "ud3tn" ]