Commit d34338ba authored by Vladislav Yarmak's avatar Vladislav Yarmak

added dockerfile and docker entrypoint script

parent bd8fc13d
FROM nvidia/cuda:latest
RUN mkdir -p /usr/local/bin /patched-lib
COPY patch.sh docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/patch.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
#!/bin/sh
echo "/patched-lib" > /etc/ld.so.conf.d/000-patched-lib.conf && \
PATCH_OUTPUT_DIR=/patched-lib /usr/local/bin/patch.sh && \
cd /patched-lib && \
for f in * ; do
suffix="${f##*.so}"
name="$(basename "$f" "$suffix")"
ln -s "$f" "$name"
ln -s "$f" "$name.1"
done && \
ldconfig
[ "$OLDPWD" ] && cd -
exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment