0% alcolhol
All checks were successful
Build Docker Image on Commit v4 / build-and-publish (push) Successful in 42s

This commit is contained in:
Merith 2025-06-05 14:20:48 -07:00
parent 0646385984
commit 5229885c7f

View file

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