Dockerfile 527 B

1234567891011121314151617
  1. FROM debian:bookworm-slim
  2. RUN apt-get update && apt-get install -y curl dpkg
  3. RUN curl -fsSL https://sing-box.app/gpg.key -o /etc/apt/keyrings/sagernet.asc
  4. RUN chmod a+r /etc/apt/keyrings/sagernet.asc
  5. RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | tee /etc/apt/sources.list.d/sagernet.list > /dev/null
  6. RUN apt-get update && apt-get install -y sing-box
  7. RUN mkdir -p /app/config
  8. WORKDIR /app
  9. COPY start.sh /app/start.sh
  10. RUN chmod +x /app/start.sh