diff --git a/Dockerfile b/Dockerfile index d234596..1e7213f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ -# use the base VNC image FROM git.merith.xyz/gns3/base-vnc:latest -## START setting your image here -RUN apk add --no-cache wine +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 -## STOP setting up your image here -# DO NOT REMOVE AND DO NOT ADD AN "ENTRYPOINT" COMMAND +# 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 + COPY ./entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh \ No newline at end of file +RUN chmod +x /entrypoint.sh