Created
December 11, 2019 22:25
-
-
Save msabramo/31346a6dc422745e25f2a4a6f987df9b to your computer and use it in GitHub Desktop.
Hack MS cognitive-services-read image to work in CoreOS with SELinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM containerpreview.azurecr.io/microsoft/cognitive-services-read | |
RUN yum --disablerepo=cuda --disablerepo=nvidia-machine-learning install -y prelink | |
RUN execstack -c /usr/local/lib64/libonnxruntime.so.0.5.0 | |
RUN echo -e '#!/bin/sh\n\ntouch /usr/local/lib64/libmkl_core.so && exec /app/docker-entrypoint.sh "$@"' > /app/marc_entrypoint.sh && \ | |
chmod +x /app/marc_entrypoint.sh | |
ENTRYPOINT ["/app/marc_entrypoint.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment