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 44a8e3e7b6
All checks were successful
Docker Image CI / build (push) Successful in 4m21s
fix: build test
2025-10-22 14:58:30 +08:00

27 lines
624 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"]