Download Dockerfile from axm0121/komari: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/axm0121/komari/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/axm0121/komari/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/axm0121/komari/resolve/main/Dockerfile
492 Bytes
| 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 /app/sync/ | |
| RUN chmod +x /app/sync/sync_data.sh | |
| EXPOSE 25774 | |
| CMD ["/bin/sh", "-c", "/app/sync/sync_data.sh & sleep 10 && exec /app/komari server"] |