ud3tn/dockerfiles/ud3tn-with-python-tools
Maximilian Nitsch 1832ad742a Change docker image compile architecture
The default compile architecture (march=native) depends heavily on the
host CPU and thus it is not suitable for a generic x86-64 Docker image.
Therefore, for the Docker images, it is changed to march=x86-64
instead.

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2021-04-01 12:59:00 +02:00

9 lines
351 B
Text

FROM python:3.8
COPY . /ud3tn
RUN cd /ud3tn \
&& ARCH=x86-64 make posix posix-lib \
&& 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 [ "stdbuf", "-oL", "ud3tn" ]