From 5229885c7f17c0ace406d9efaea40d1346cef559 Mon Sep 17 00:00:00 2001
From: Merith <merith@merith.xyz>
Date: Thu, 5 Jun 2025 14:20:48 -0700
Subject: [PATCH] 0% alcolhol

---
 Dockerfile | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 045e2cd..f318d09 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,25 +1,23 @@
 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 && \
+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.exe /WinBox.exe && \
-    /tmp/upx-5.0.1-amd64_linux/upx /WinBox.exe
+    mv /tmp/winbox/WinBox /WinBox && \
+    /tmp/upx-5.0.1-amd64_linux/upx /WinBox
 
 FROM git.merith.xyz/gns3/base-vnc:latest
 
 RUN apk add --no-cache wine wget
 
-COPY --from=builder /WinBox.exe /WinBox.exe
+COPY --from=builder /WinBox /WinBox
 
-# Preload Wine Mono
-RUN mkdir -p /usr/share/wine/mono && \
-    wget https://dl.winehq.org/wine/wine-mono/9.0.0/wine-mono-9.0.0-x86.msi -O /usr/share/wine/mono/wine-mono.msi && \
-    wineboot --init && \
-    wine msiexec /i /usr/share/wine/mono/wine-mono.msi /qn
+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
 
 COPY ./entrypoint.sh /entrypoint.sh
 RUN chmod +x /entrypoint.sh
\ No newline at end of file