diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bcad17..1ba982d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,6 +59,7 @@ jobs: tags: | ryjer/opentracker:latest ryjer/opentracker:20210823 + ryjer/opentracker:20210823-alpine # 处理缓存无限增大问题的临时修复,以防出现问题。(等待github官方修复) #- name: Move cache diff --git a/Dockerfile b/Dockerfile index d277494..b554030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,17 +27,17 @@ COPY --from=build /src/opentracker/opentracker /bin/opentracker # 创建配置目录,安装 curl 健康检查使用 RUN apk add --no-cache curl \ - && mkdir -p ${XDG_CONFIG_HOME} + && mkdir -p /config # 对外暴露配置卷路径 -VOLUME ["${XDG_CONFIG_HOME}"] +VOLUME ["/config"] # 复制配置文件到配置路径 -COPY ./opentracker.conf ${XDG_CONFIG_HOME}/opentracker.conf -COPY ./whitelist ${XDG_CONFIG_HOME}/whitelist -COPY ./blacklist ${XDG_CONFIG_HOME}/blacklist +COPY ./opentracker.conf /config/opentracker.conf +COPY ./whitelist /config/whitelist +COPY ./blacklist /config/blacklist EXPOSE 6969/tcp EXPOSE 6969/udp -CMD ["/bin/opentracker", "-f", "${XDG_CONFIG_HOME}/opentracker.conf"] +CMD ["/bin/opentracker", "-f", "/config/opentracker.conf"]