Created a new entrypoint to allow eula automatic exception

This commit is contained in:
2024-08-17 12:45:49 -05:00
parent 5033e05a11
commit 7a4f31ec7e
2 changed files with 10 additions and 2 deletions

View File

@@ -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"]
ENTRYPOINT ["/entrypoint.sh"]

7
entrypoint.sh Normal file
View File

@@ -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 "$@"