FROM ghcr.io/linuxserver/baseimage-selkies:debiantrixie # set version label ARG BUILD_DATE ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="thelamer" # title ENV TITLE=Weixin \ NO_FULL=true RUN \ echo "**** add icon ****" && \ curl -o \ /usr/share/selkies/www/icon.png \ https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/weixin-logo.png && \ echo "**** install packages ****" && \ apt-get update && \ apt-get install -y --no-install-recommends \ caja \ chromium \ chromium-l10n \ tint2 && \ echo "**** install weixin ****" && \ curl -o \ /tmp/weixin.app -L \ "https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage" && \ cd /tmp && \ chmod +x weixin.app && \ ./weixin.app --appimage-extract && \ mv \ squashfs-root \ /opt/weixin && \ echo "**** application tweaks ****" && \ mv \ /usr/bin/chromium \ /usr/bin/chromium-real && \ ln -s \ /opt/weixin/AppRun \ /usr/bin/wechat && \ cp \ /opt/weixin/wechat.png \ /usr/share/icons/hicolor/48x48/apps/ && \ cp \ /opt/weixin/wechat.desktop \ /usr/share/applications/ && \ sed -i \ 's/AppRun/wechat/g' \ /usr/share/applications/wechat.desktop && \ echo "**** cleanup ****" && \ apt-get clean && \ rm -rf \ /tmp/* \ /var/lib/apt/lists/* \ /var/tmp/* # add local files COPY /root / # ports and volumes EXPOSE 3001 VOLUME /config