FROM python:3.11-slim

WORKDIR /app

# 依赖（利用层缓存）
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# 代码
COPY *.py ./
COPY config.example.yaml ./

# 配置通过 volume 挂载 config.yaml，或通过环境变量注入
# docker run -d --name lark2lark \
#   -v $(pwd)/config.yaml:/app/config.yaml \
#   --restart unless-stopped \
#   lark2lark
CMD ["python", "main.py"]
