<aside> 💡 Sub-Store 是什么, 如何安装代理 App 版, 前端如何使用等问题请自行 Google
</aside>
Sub-Store Hugging Face 自建教程(被官方封禁, 暂时放弃)
频道中搜索关键词 Sub-Store
获取其他相关技巧工具分享
👥 欢迎加入 Telegram 社群
📌 资源合集导航
文件名: Dockerfile
文件内容:
FROM alpine
WORKDIR /opt/app
RUN apk add --no-cache nodejs curl tzdata
ENV TIME_ZONE=Asia/Shanghai
RUN cp /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
# RUN apk del tzdata
ADD <https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store.bundle.js> /opt/app/sub-store.bundle.js
ADD <https://github.com/sub-store-org/Sub-Store-Front-End/releases/latest/download/dist.zip> /opt/app/dist.zip
RUN unzip dist.zip; mv dist frontend; rm dist.zip
ADD <https://github.com/xream/http-meta/releases/latest/download/http-meta.bundle.js> /opt/app/http-meta.bundle.js
ADD <https://github.com/xream/http-meta/releases/latest/download/tpl.yaml> /opt/app/http-meta/tpl.yaml
RUN version=$(curl -s -L --connect-timeout 5 --max-time 10 --retry 2 --retry-delay 0 --retry-max-time 20 '<https://github.com/MetaCubeX/mihomo/releases/download/Prerelease-Alpha/version.txt>') && \\
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64-compatible/) && \\
url="<https://github.com/MetaCubeX/mihomo/releases/download/Prerelease-Alpha/mihomo-linux-$arch-$version.gz>" && \\
curl -s -L --connect-timeout 5 --max-time 10 --retry 2 --retry-delay 0 --retry-max-time 20 "$url" -o /opt/app/http-meta/http-meta.gz && \\
gunzip /opt/app/http-meta/http-meta.gz && \\
rm -rf /opt/app/http-meta/http-meta.gz
RUN chmod 777 -R /opt/app
CMD mkdir -p /opt/app/data; cd /opt/app/data; \\
META_FOLDER=/opt/app/http-meta HOST=:: node /opt/app/http-meta.bundle.js > /opt/app/data/http-meta.log 2>&1 & echo "HTTP-META is running..."; \\
SUB_STORE_BACKEND_API_HOST=:: SUB_STORE_FRONTEND_HOST=:: SUB_STORE_FRONTEND_PORT=3001 SUB_STORE_FRONTEND_PATH=/opt/app/frontend SUB_STORE_DATA_BASE_PATH=/opt/app/data node /opt/app/sub-store.bundle.js
在 back4app 上打开
然后导入你的 GitHub 仓库
配置环境变量等
若需配置其他环境变量 可参考 xream/sub-store - Docker Image | Docker Hub