This commit is contained in:
26
tls-sync/Dockerfile
Normal file
26
tls-sync/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user