Skip to content

Commit

Permalink
更新debian10 buster-slim 基础镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
ryjer committed Sep 11, 2023
1 parent c69c70f commit 98f8e7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
tags: |
ryjer/opentracker:bookworm-slim
ryjer/opentracker:20210823-bookworm-slim
ryjer/opentracker:buster-slim
ryjer/opentracker:20210823-buster-slim
4 changes: 2 additions & 2 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim AS build
FROM debian:buster-slim AS build

WORKDIR /src

Expand All @@ -21,7 +21,7 @@ RUN git clone git://erdgeist.org/opentracker \
&& make -j4


FROM debian:bookworm-slim
FROM debian:buster-slim

# XDG目录规范
ENV XDG_CONFIG_HOME=/config
Expand Down
6 changes: 4 additions & 2 deletions debian/Dockerfile.bookworm-slim
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ ENV XDG_CONFIG_HOME=/config

COPY --from=build /src/opentracker/opentracker /bin/opentracker

# 安装 curl 用于健康检查,并创建配置目录
RUN apt update -y\
&& apt install curl -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p ${XDG_CONFIG_HOME}

VOLUME ["${XDG_CONFIG_HOME}"]
COPY ./opentracker.conf ${XDG_CONFIG_HOME}/opentracker.conf
Expand All @@ -41,4 +43,4 @@ COPY ./blacklist ${XDG_CONFIG_HOME}/blacklist
EXPOSE 6969/tcp
EXPOSE 6969/udp

CMD ["/bin/opentracker", "-f", "${XDG_CONFIG_HOME}/opentracker.conf"]
CMD ["/bin/opentracker", "-f", "/config/opentracker.conf"]

0 comments on commit 98f8e7a

Please sign in to comment.