generated from gns3/vnc-template
0% alcolhol
All checks were successful
Build Docker Image on Commit v4 / build-and-publish (push) Successful in 42s
All checks were successful
Build Docker Image on Commit v4 / build-and-publish (push) Successful in 42s
This commit is contained in:
parent
0646385984
commit
5229885c7f
1 changed files with 7 additions and 9 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,25 +1,23 @@
|
||||||
FROM alpine:latest as builder
|
FROM alpine:latest as builder
|
||||||
|
|
||||||
RUN apk add --no-cache unzip wget
|
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 && \
|
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 && \
|
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 && \
|
tar -xf /tmp/upx.tar.xz -C /tmp && \
|
||||||
mv /tmp/winbox/WinBox.exe /WinBox.exe && \
|
mv /tmp/winbox/WinBox /WinBox && \
|
||||||
/tmp/upx-5.0.1-amd64_linux/upx /WinBox.exe
|
/tmp/upx-5.0.1-amd64_linux/upx /WinBox
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
COPY --from=builder /WinBox.exe /WinBox.exe
|
COPY --from=builder /WinBox /WinBox
|
||||||
|
|
||||||
# Preload Wine Mono
|
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk && \
|
||||||
RUN mkdir -p /usr/share/wine/mono && \
|
apk add --allow-untrusted glibc-2.35-r1.apk && \
|
||||||
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 && \
|
rm glibc-2.35-r1.apk
|
||||||
wineboot --init && \
|
|
||||||
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