11 lines
474 B
Docker
11 lines
474 B
Docker
# ========== Stage 1: extract sing-box binary ==========
|
|
FROM ghcr.io/sagernet/sing-box:latest AS sb-bin
|
|
# ========== Stage 2: slim Python runtime + entrypoint.py ==========
|
|
FROM python:3.13-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
COPY --from=sb-bin /usr/local/bin/sing-box /usr/local/bin/sing-box
|
|
RUN chmod +x /usr/local/bin/sing-box
|
|
WORKDIR /src
|
|
COPY . .
|
|
ENTRYPOINT ["python3", "entrypoint.py"]
|