This repository has been archived on 2025-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
test/tls-sync/Dockerfile
merlin 3df0658949
Some checks failed
Docker Image CI / build (push) Failing after 21s
ci test
2025-10-20 15:09:42 +08:00

27 lines
576 B
Docker

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"]