Skip to content

Instantly share code, notes, and snippets.

@msabramo
Created December 11, 2019 22:25
Show Gist options
  • Save msabramo/31346a6dc422745e25f2a4a6f987df9b to your computer and use it in GitHub Desktop.
Save msabramo/31346a6dc422745e25f2a4a6f987df9b to your computer and use it in GitHub Desktop.
Hack MS cognitive-services-read image to work in CoreOS with SELinux
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