FROM alpine:latest as builder RUN apk add --no-cache unzip wget RUN wget -O /tmp/WinBox_Linux.zip https://download.mikrotik.com/routeros/winbox/4.0beta22/WinBox_Linux.zip && \ unzip /tmp/WinBox_Linux.zip -d /tmp/winbox && \ wget -O /tmp/upx.tar.xz https://github.com/upx/upx/releases/download/v5.0.1/upx-5.0.1-amd64_linux.tar.xz && \ tar -xf /tmp/upx.tar.xz -C /tmp && \ mv /tmp/winbox/WinBox /WinBox && \ /tmp/upx-5.0.1-amd64_linux/upx --best --ultra-brute /WinBox FROM git.merith.xyz/gns3/base-vnc:latest RUN apk add --no-cache wget 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 -rf /var/cache/apk/* COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh