diff --git a/Dockerfile b/Dockerfile index b01d6ac..5e87cfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,8 @@ COPY --from=builder /WinBox /WinBox RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk && \ apk add --allow-untrusted glibc-2.35-r1.apk && \ - rm glibc-2.35-r1.apk + rm glibc-2.35-r1.apk && \ + rm -rf /var/cache/apk/* COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 42bfd87..01453ae 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,14 +1,3 @@ #!/bin/bash -# Wait until internet is available -while ! ping -c1 1.1.1.1 &>/dev/null; do - echo "Waiting for internet connection..." - sleep 5 -done - -if [ ! -f "/winbox64.exe" ]; then - echo "Winbox executable not found in /data. Downloading..." - wget -O /winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe -fi - -wine64 /winbox64.exe +/WinBox \ No newline at end of file