File size: 492 Bytes
4566cfa cadfc0f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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"] |