diff --git a/Dockerfile b/Dockerfile index 1e7213f..045e2cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,19 @@ +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_Windows.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.exe /WinBox.exe && \ + /tmp/upx-5.0.1-amd64_linux/upx /WinBox.exe + FROM git.merith.xyz/gns3/base-vnc:latest RUN apk add --no-cache wine wget -# Pre-download Winbox -RUN wget -O /winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe +COPY --from=builder /WinBox.exe /WinBox.exe # Preload Wine Mono RUN mkdir -p /usr/share/wine/mono && \ @@ -12,4 +22,4 @@ RUN mkdir -p /usr/share/wine/mono && \ wine msiexec /i /usr/share/wine/mono/wine-mono.msi /qn COPY ./entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh +RUN chmod +x /entrypoint.sh \ No newline at end of file