mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-18 13:09:11 +02:00
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>
9 lines
351 B
Text
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" ]
|