1
0

Dockerfile 634 B

123456789101112131415161718192021222324
  1. # Dockerfile for Taiga sync service
  2. FROM python:3.11-slim
  3. # Install system dependencies (if any)
  4. RUN apt-get update && apt-get install -y --no-install-recommends \
  5. build-essential \
  6. default-libmysqlclient-dev \
  7. && rm -rf /var/lib/apt/lists/*
  8. WORKDIR /app
  9. COPY requirements.txt ./
  10. RUN pip install --no-cache-dir -r requirements.txt
  11. # Copy Taiga sync scripts (assumed to be in project root)
  12. COPY taiga_feed.py ./
  13. COPY generate_taiga_wiki.py ./
  14. COPY taiga_checker.py ./
  15. # Wrapper script to gracefully skip when no Taiga URL/token
  16. COPY run_sync.sh /app/run_sync.sh
  17. RUN chmod +x /app/run_sync.sh
  18. CMD ["/app/run_sync.sh"]