fix docker

This commit is contained in:
cyy_mac
2026-03-24 22:47:36 +08:00
parent 69a660bfeb
commit d822c24e82
2 changed files with 20 additions and 4 deletions

View File

@@ -5,9 +5,7 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 配置文件不打包,由 volumes 挂载
VOLUME ["/app/config.yaml", "/app/last_notifications.json"]
COPY main.py notifier.py .
COPY config.yaml.example config.yaml
CMD ["python", "main.py"]