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 d69aeb1e8d
Some checks failed
Docker Image CI / build (push) Has been cancelled
fix: build test
2025-10-22 14:54:07 +08:00

27 lines
620 B
Docker

FROM harbor.merlin.xin/mirrors/docker.io/library/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"]