winbox/Dockerfile
Merith e372d13ad7
Some checks failed
Build Docker Image on Commit v4 / build-and-publish (push) Failing after 2s
glibc more?
2025-06-06 06:57:21 -07:00

29 lines
No EOL
1.3 KiB
Docker

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_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 /WinBox && \
/tmp/upx-5.0.1-amd64_linux/upx --lzma /WinBox
FROM git.merith.xyz/gns3/base-vnc:latest
RUN apk add --no-cache wget
COPY --from=builder /WinBox /WinBox
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-bin-2.35-r1.apk && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-i18n-2.35-r1.apk && \
apk add --allow-untrusted glibc-2.35-r1.apk glibc-bin-2.35-r1.apk glibc-i18n-2.35-r1.apk && \
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 && \
echo "export LANG=en_US.UTF-8" >> /etc/profile.d/glibc.sh && \
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile.d/glibc.sh && \
rm glibc-2.35-r1.apk glibc-bin-2.35-r1.apk glibc-i18n-2.35-r1.apk && \
rm -rf /var/cache/apk/*
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh