From 1b17ee6577cb753a80c4faa30f131361a78d1fa8 Mon Sep 17 00:00:00 2001 From: ryjer Date: Sun, 17 Sep 2023 17:09:43 +0800 Subject: [PATCH] =?UTF-8?q?alpine=203.15=20=E4=BB=93=E5=BA=93=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20opentracker=200=5Fgit20180526-r1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 6 ++++-- Dockerfile | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9339da6..22b369e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,8 +57,10 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new tags: | - ryjer/opentracker:latest - ryjer/opentracker:alpine + ryjer/opentracker:20180526 + ryjer/opentracker:20180526-r1 + ryjer/opentracker:20180526-alpine3.15.10 + ryjer/opentracker:20180526-alpine3.15 ryjer/opentracker:alpine3.15 ryjer/opentracker:alpine3.15.10 diff --git a/Dockerfile b/Dockerfile index 6d6f1e6..58b3acd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM alpine +FROM alpine:3.15.10 # 创建配置目录,安装 curl 健康检查使用 -RUN apk add --no-cache opentracker curl +RUN apk add --no-cache opentracker # 对外暴露配置卷路径 -VOLUME ["/etc/opentracker"] +VOLUME /etc/opentracker # 复制配置文件到配置路径,alpine默认opentracker配置文件为空 COPY ./opentracker.conf /etc/opentracker/opentracker.conf @@ -12,5 +12,5 @@ COPY ./opentracker.conf /etc/opentracker/opentracker.conf EXPOSE 6969/tcp EXPOSE 6969/udp -CMD ["/usr/bin/opentracker", "-f", "/etc/opentracker/opentracker.conf"] +CMD opentracker -f /etc/opentracker/opentracker.conf