logo
ghcr.io/wei-shaw/sub2api:0.2.16
linux/amd64 ghcr.io CC 贡献

ghcr.io/wei-shaw/sub2api是一个用于将代理订阅链接(如V2Ray、Clash等格式)转换为API接口的工具,方便通过API方式获取或处理订阅内容。

23
浏览次数
267.58MB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16
源镜像
ghcr.io/wei-shaw/sub2api:0.2.16
镜像ID
sha256:fadd1766f47675e0d3db1ea100488b94e84364910964d9079d07eeb91672e8e8
镜像 TAG
0.2.16
镜像大小
267.58MB
平台架构
linux/amd64
镜像源
ghcr.io
CMD
/app/sub2api
启动入口
/app/docker-entrypoint.sh
工作目录
/app
OS/平台
linux/amd64
镜像创建
2026-10-13T07:19:30.860348607Z
同步时间
2026-10-15 13:42
浏览量
23 次
贡献者
avatar CC
🔌 开放端口 1
8080/tcp
⚙️ 环境变量 1
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
🏷️ 镜像标签 5
KeyValue
Sub2API - AI API Gateway Platform description
Wei-Shaw <github.com/Wei-Shaw> maintainer
01842576b3d5c1e2545b5a99ad555d36e28ed306 org.opencontainers.image.revision
https://github.com/Wei-Shaw/sub2api org.opencontainers.image.source
0.2.16 org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16  ghcr.io/wei-shaw/sub2api:0.2.16

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16  ghcr.io/wei-shaw/sub2api:0.2.16

Shell快速替换命令

sed -i 's#ghcr.io/wei-shaw/sub2api:0.2.16#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16  ghcr.io/wei-shaw/sub2api:0.2.16'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16  ghcr.io/wei-shaw/sub2api:0.2.16'

镜像构建历史


# 2026-10-13 15:19:30  0.00B 设置默认要执行的命令
CMD ["/app/sub2api"]
                        
# 2026-10-13 15:19:30  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/app/docker-entrypoint.sh"]
                        
# 2026-10-13 15:19:30  0.00B 指定检查容器健康状态的命令
HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:${SERVER_PORT:-8080}/health || exit 1] Interval:30s Timeout:10s StartPeriod:10s StartInterval:0s Retries:3}
                        
# 2026-10-13 15:19:30  0.00B 声明容器运行时监听的端口
EXPOSE [8080/tcp]
                        
# 2026-10-13 15:19:30  778.00B 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /app/docker-entrypoint.sh # buildkit
                        
# 2026-10-13 15:19:30  778.00B 复制新文件或目录到容器中
COPY deploy/docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit
                        
# 2026-10-13 15:19:30  123.80MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /app/data && chown -R sub2api:sub2api /app # buildkit
                        
# 2026-10-13 15:19:30  214.84KB 复制新文件或目录到容器中
COPY --chown=sub2api:sub2api backend/resources /app/resources # buildkit
                        
# 2026-10-13 15:19:30  123.80MB 复制新文件或目录到容器中
COPY sub2api /app/sub2api # buildkit
                        
# 2026-10-13 15:19:30  0.00B 设置工作目录为/app
WORKDIR /app
                        
# 2026-10-13 15:19:30  3.06KB 执行命令并创建新的镜像层
RUN /bin/sh -c addgroup -g 1000 sub2api &&     adduser -u 1000 -G sub2api -s /bin/sh -D sub2api # buildkit
                        
# 2026-10-13 15:19:30  875.47KB 复制新文件或目录到容器中
COPY /usr/local/lib/libpq.so.5* /usr/local/lib/ # buildkit
                        
# 2026-10-13 15:19:30  1.05MB 复制新文件或目录到容器中
COPY /usr/local/bin/psql /usr/local/bin/psql # buildkit
                        
# 2026-10-13 15:19:30  543.04KB 复制新文件或目录到容器中
COPY /usr/local/bin/pg_dump /usr/local/bin/pg_dump # buildkit
                        
# 2026-10-13 15:19:29  9.49MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache     ca-certificates     tzdata     curl     su-exec     libpq     zstd-libs     lz4-libs     krb5-libs     libldap     libedit     && rm -rf /var/cache/apk/* # buildkit
                        
# 2026-10-13 15:19:29  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/Wei-Shaw/sub2api
                        
# 2026-10-13 15:19:29  0.00B 添加元数据标签
LABEL description=Sub2API - AI API Gateway Platform
                        
# 2026-10-13 15:19:29  0.00B 添加元数据标签
LABEL maintainer=Wei-Shaw <github.com/Wei-Shaw>
                        
# 2026-09-18 04:38:22  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2026-09-18 04:38:22  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.8-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:fadd1766f47675e0d3db1ea100488b94e84364910964d9079d07eeb91672e8e8",
    "RepoTags": [
        "weishaw/sub2api:0.2.16",
        "ghcr.io/wei-shaw/sub2api:0.2.16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weishaw/sub2api:0.2.16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api:0.2.16"
    ],
    "RepoDigests": [
        "weishaw/sub2api@sha256:799e9b4ee9e3164f13fe74f4df93022048cb902eda533b98fe5751c883eb1a7c",
        "ghcr.io/wei-shaw/sub2api@sha256:799e9b4ee9e3164f13fe74f4df93022048cb902eda533b98fe5751c883eb1a7c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weishaw/sub2api@sha256:b594be4f10435afbb4bfe79bcda388ca9ad6df46f56f565652fefb31cd6fa058",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/wei-shaw/sub2api@sha256:b594be4f10435afbb4bfe79bcda388ca9ad6df46f56f565652fefb31cd6fa058"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-10-13T07:19:30.860348607Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8080/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
            "/app/sub2api"
        ],
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "curl -f http://localhost:${SERVER_PORT:-8080}/health || exit 1"
            ],
            "Interval": 30000000000,
            "Timeout": 10000000000,
            "StartPeriod": 10000000000,
            "Retries": 3
        },
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/app",
        "Entrypoint": [
            "/app/docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "description": "Sub2API - AI API Gateway Platform",
            "maintainer": "Wei-Shaw \u003cgithub.com/Wei-Shaw\u003e",
            "org.opencontainers.image.revision": "01842576b3d5c1e2545b5a99ad555d36e28ed306",
            "org.opencontainers.image.source": "https://github.com/Wei-Shaw/sub2api",
            "org.opencontainers.image.version": "0.2.16"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 267582487,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/68086ec6181bf59c9fdbab8070bbd78aab7736f854efdac4600517da05021bf8/diff:/var/lib/docker/overlay2/1dacc2822150b0a5c819232e1600d97264452f8a59796b88e5dcc0bc9dc4e629/diff:/var/lib/docker/overlay2/1082b471cb89e88a42ca9eb28ee89460530953c79914b3561e38ed05542a7ff9/diff:/var/lib/docker/overlay2/693017eb538f4ca8d5cb25b100a46b381187d16c4c93b098ed9e81a5569dc900/diff:/var/lib/docker/overlay2/6a0b684cae5f848c4beb5f0a80114ef3c706792758c51cf03cca4ebea8abb3c3/diff:/var/lib/docker/overlay2/10b73c7bbe094a868355d3663428a57496bcbf789bc8cd2d2eb94209697ffea9/diff:/var/lib/docker/overlay2/c5d0b84f2b148e6811cd03afe1720155660c8e02e41c222f3f4b7a7abe2119c6/diff:/var/lib/docker/overlay2/2612fd224b10f247be81be3f3706e4e45fb8149880d5115c153733251c4ad570/diff:/var/lib/docker/overlay2/32f80612fdae5cc7789ce8fd45897c17b0c2ad10c3cd98f0c3ad6bf00fc5a271/diff:/var/lib/docker/overlay2/c09e34bd146c8eed46893c802c4e8919b6c3fa5ec92e64a6db24fe7bbb734449/diff:/var/lib/docker/overlay2/7083ae714747dfee5567641803497f63475051b876b53274b6e7d2f540c5195d/diff",
            "MergedDir": "/var/lib/docker/overlay2/44b8e6ea87c951bce4e254f57dea9d596430c4d91c04aa3f602cbb4299c46e93/merged",
            "UpperDir": "/var/lib/docker/overlay2/44b8e6ea87c951bce4e254f57dea9d596430c4d91c04aa3f602cbb4299c46e93/diff",
            "WorkDir": "/var/lib/docker/overlay2/44b8e6ea87c951bce4e254f57dea9d596430c4d91c04aa3f602cbb4299c46e93/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1073f425247ed24670458429c13a67afbd36f83d2004dade046ddbd6519b1839",
            "sha256:51e9f114dd4922c479b1784a7c2af39d99e56c53186f4b4aea0ab8fdd7aeeabc",
            "sha256:8537dee7baeb81cd24322cd18639ce925736607e7dbe0767af8e4a8fbb7d0218",
            "sha256:8a790ae5c392da155784d2c541a3adbe80f039797d1fe208286c2f10ab4b9449",
            "sha256:b1aa79d89797b3072928da7398db7a1814035348e517198c5915135b17825800",
            "sha256:1a7cb296ac32840381447cc692171c0725b951f0909ce00cfcefff482e0226a2",
            "sha256:9e21355f03ca9274aecd02cd9d21fb3c62c992a70dd2e9f2b3d2de156fe9721f",
            "sha256:de77c214a4078ffb20dbcab2a19ecf3ff4998924e19e6a21c1c2e28edc7da45a",
            "sha256:1d2d46fdd75961de1437765c86bc096dbf3f66dae05370bd011f2ef23d2a2f14",
            "sha256:6e7d211d5f3a4fadcbfca6f07c0009bcda1056343de3d5c0569eee932e8a5ded",
            "sha256:a5cf5279bf4e704d0be8259f8c22e1e83d7c63250a6f8be2a2de4181f6790644",
            "sha256:27bc696d80f1d71904e934aa93a3d19d493d704c5ff9a62928ff53bfbd490d2b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-10-15T13:42:23.630642923+08:00"
    }
}

更多版本

ghcr.io/wei-shaw/sub2api:0.1.120

linux/amd64 ghcr.io192.21MB2026-04-30 09:50
589

ghcr.io/wei-shaw/sub2api:0.1.121

linux/amd64 ghcr.io192.28MB2026-05-02 10:32
363

ghcr.io/wei-shaw/sub2api:0.1.133

linux/amd64 ghcr.io199.43MB2026-05-29 17:27
420

ghcr.io/wei-shaw/sub2api:0.1.135

linux/amd64 ghcr.io200.66MB2026-06-09 09:22
337

ghcr.io/wei-shaw/sub2api:0.1.139

linux/amd64 ghcr.io201.98MB2026-06-27 23:14
226

ghcr.io/wei-shaw/sub2api:0.1.142

linux/amd64 ghcr.io202.80MB2026-07-03 02:56
212

ghcr.io/wei-shaw/sub2api:0.1.149

linux/amd64 ghcr.io234.41MB2026-07-10 08:27
214

ghcr.io/wei-shaw/sub2api:0.1.150

linux/amd64 ghcr.io234.57MB2026-07-10 14:39
194

ghcr.io/wei-shaw/sub2api:0.1.151

linux/amd64 ghcr.io234.60MB2026-07-11 08:40
195

ghcr.io/wei-shaw/sub2api:0.1.152

linux/amd64 ghcr.io234.97MB2026-07-13 11:48
228

ghcr.io/wei-shaw/sub2api:0.1.155

linux/amd64 ghcr.io236.10MB2026-07-14 16:05
171

ghcr.io/wei-shaw/sub2api:0.1.156

linux/amd64 ghcr.io237.33MB2026-07-15 17:21
181

ghcr.io/wei-shaw/sub2api:0.1.157

linux/amd64 ghcr.io238.48MB2026-07-16 17:46
159

ghcr.io/wei-shaw/sub2api:0.1.158

linux/amd64 ghcr.io238.64MB2026-07-16 21:04
224

ghcr.io/wei-shaw/sub2api:0.1.159

linux/amd64 ghcr.io238.64MB2026-07-17 15:53
155

ghcr.io/wei-shaw/sub2api:0.1.160

linux/amd64 ghcr.io239.95MB2026-07-17 17:48
184

ghcr.io/wei-shaw/sub2api:0.1.161

linux/amd64 ghcr.io240.63MB2026-07-19 20:10
186

ghcr.io/wei-shaw/sub2api:0.1.162

linux/amd64 ghcr.io240.68MB2026-07-20 19:16
174

ghcr.io/wei-shaw/sub2api:0.1.163

linux/amd64 ghcr.io241.09MB2026-07-22 21:57
180

ghcr.io/wei-shaw/sub2api:0.1.164

linux/amd64 ghcr.io242.95MB2026-07-23 22:38
167

ghcr.io/wei-shaw/sub2api:0.1.165

linux/amd64 ghcr.io243.31MB2026-07-26 15:52
136

ghcr.io/wei-shaw/sub2api:0.1.166

linux/amd64 ghcr.io243.75MB2026-07-27 21:28
146

ghcr.io/wei-shaw/sub2api:0.1.168

linux/amd64 ghcr.io246.70MB2026-07-29 17:24
150

ghcr.io/wei-shaw/sub2api:0.1.169

linux/amd64 ghcr.io246.98MB2026-07-31 17:44
161

ghcr.io/wei-shaw/sub2api:0.1.170

linux/amd64 ghcr.io247.50MB2026-08-02 19:34
140

ghcr.io/wei-shaw/sub2api:0.1.171

linux/amd64 ghcr.io79.66MB2026-08-06 15:05
166

ghcr.io/wei-shaw/sub2api:0.1.173

linux/amd64 ghcr.io255.19MB2026-08-10 17:18
164

ghcr.io/wei-shaw/sub2api:0.1.175

linux/amd64 ghcr.io255.43MB2026-08-12 23:58
132

ghcr.io/wei-shaw/sub2api:0.1.176

linux/amd64 ghcr.io255.66MB2026-08-13 11:57
156

ghcr.io/wei-shaw/sub2api:0.1.177

linux/amd64 ghcr.io255.94MB2026-08-16 10:58
131

ghcr.io/wei-shaw/sub2api:0.1.178

linux/amd64 ghcr.io257.02MB2026-08-18 18:55
129

ghcr.io/wei-shaw/sub2api:0.1.179

linux/amd64 ghcr.io257.38MB2026-08-20 23:12
126

ghcr.io/wei-shaw/sub2api:0.1.180

linux/amd64 ghcr.io257.96MB2026-08-24 20:29
106

ghcr.io/wei-shaw/sub2api:0.1.181

linux/amd64 ghcr.io257.97MB2026-08-25 10:05
123

ghcr.io/wei-shaw/sub2api:0.1.182

linux/amd64 ghcr.io257.97MB2026-08-25 16:33
118

ghcr.io/wei-shaw/sub2api:0.1.183

linux/amd64 ghcr.io258.01MB2026-08-26 09:46
162

ghcr.io/wei-shaw/sub2api:0.1.184

linux/amd64 ghcr.io258.65MB2026-09-01 10:30
123

ghcr.io/wei-shaw/sub2api:0.1.185

linux/amd64 ghcr.io258.70MB2026-09-01 20:40
96

ghcr.io/wei-shaw/sub2api:0.1.94

linux/amd64 ghcr.io150.63MB2026-03-09 19:24
601

ghcr.io/wei-shaw/sub2api:0.2.0

linux/amd64 ghcr.io258.92MB2026-09-04 11:05
163

ghcr.io/wei-shaw/sub2api:0.2.1

linux/amd64 ghcr.io259.38MB2026-09-06 09:37
132

ghcr.io/wei-shaw/sub2api:0.2.10

linux/amd64 ghcr.io265.66MB2026-09-29 17:27
70

ghcr.io/wei-shaw/sub2api:0.2.13

linux/amd64 ghcr.io266.40MB2026-10-04 14:10
72

ghcr.io/wei-shaw/sub2api:0.2.14

linux/amd64 ghcr.io266.42MB2026-10-08 18:50
43

ghcr.io/wei-shaw/sub2api:0.2.15

linux/amd64 ghcr.io266.96MB2026-10-10 18:31
51

ghcr.io/wei-shaw/sub2api:0.2.16

linux/amd64 ghcr.io267.58MB2026-10-15 13:42
22

ghcr.io/wei-shaw/sub2api:0.2.3

linux/amd64 ghcr.io259.73MB2026-09-08 16:10
112

ghcr.io/wei-shaw/sub2api:0.2.4

linux/amd64 ghcr.io263.58MB2026-09-09 15:49
131

ghcr.io/wei-shaw/sub2api:0.2.5

linux/amd64 ghcr.io264.22MB2026-09-15 18:56
88

ghcr.io/wei-shaw/sub2api:0.2.7

linux/amd64 ghcr.io264.66MB2026-09-20 09:03
95

ghcr.io/wei-shaw/sub2api:0.2.8

linux/amd64 ghcr.io265.47MB2026-09-23 17:45
102

ghcr.io/wei-shaw/sub2api:0.2.9

linux/amd64 ghcr.io265.53MB2026-09-28 11:25
99
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×