diff --git a/Dockerfile b/Dockerfile index a8faedc..72de729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/scr RUN yum -y install speedtest -RUN echo alias speedtest=\'speedtest --accept-license\' >> ~/.bashrc +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh -CMD ["speedtest", "--accept-license"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..4768b32 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Set terminal type +export TERM=xterm-256color + +# Run xsos with all arguments passed to the container +/usr/bin/speedtest --accept-license "$@" \ No newline at end of file