generated from gns3/vnc-template
Attemtp winbox v4
This commit is contained in:
parent
29b5f38836
commit
f85ffa6c21
1 changed files with 13 additions and 3 deletions
16
Dockerfile
16
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
|
FROM git.merith.xyz/gns3/base-vnc:latest
|
||||||
|
|
||||||
RUN apk add --no-cache wine wget
|
RUN apk add --no-cache wine wget
|
||||||
|
|
||||||
# Pre-download Winbox
|
COPY --from=builder /WinBox.exe /WinBox.exe
|
||||||
RUN wget -O /winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe
|
|
||||||
|
|
||||||
# Preload Wine Mono
|
# Preload Wine Mono
|
||||||
RUN mkdir -p /usr/share/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
|
wine msiexec /i /usr/share/wine/mono/wine-mono.msi /qn
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
Loading…
Reference in a new issue