Xiang (@xjfkkk) 在 在huggingface上部署komari(webdav同步) 中发帖
项目地址:
来个成品:
https://komari.xjfkkk.me
1.创建Dockerfile
FROM ghcr.io/komari-monitor/komari:latest
WORKDIR /app
RUN apk add --update --no-cache python3 py3-pip curl lsof
RUN python3 -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
RUN pip install --no-cache-dir requests webdavclient3
RUN mkdir -p /app/data && chmod -R 775 /app/data
RUN chmod -R 775 /app
RUN mkdir -p /app/sync
COPY sync_data.sh ...