ci test
Some checks failed
Docker Image CI / build (push) Failing after 21s

This commit is contained in:
merlin
2025-10-20 15:09:42 +08:00
parent c23cf94bd1
commit 3df0658949
5 changed files with 315 additions and 0 deletions

26
tls-sync/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM python:3.11-slim
# 安装依赖 如果有需要,可以取消注释安装网络调试工具
RUN apt-get update && apt-get install -y \
# openssh-client \
# curl \
# iputils-ping \
# netcat-openbsd \
# dnsutils \
# telnet \
&& rm -rf /var/lib/apt/lists/*
# 安装 Python 依赖
RUN pip install --no-cache-dir kubernetes pycryptodome
# 复制脚本
COPY job.py /app/job.py
WORKDIR /app
# 设置环境变量(可在部署时覆盖)
ENV NGINX_HOST=10.0.0.1
ENV NGINX_USER=nginx
ENV NAMESPACE=basic
# 默认命令
CMD ["python", "job.py"]