repo restructure
All checks were successful
Build Docker Image / build (push) Successful in 1m3s

This commit is contained in:
Tudor Sitaru
2025-10-14 21:58:54 +01:00
parent e062b51b4b
commit d8637ac2ea
69 changed files with 781 additions and 4710 deletions

View File

@@ -13,19 +13,18 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY *.py ./
COPY *config.json ./
COPY src/ ./src/
COPY config/ ./config/
# Create output directories
RUN mkdir -p /app/snapshots /app/logs
RUN mkdir -p /app/data/snapshots /app/data/logs
# Copy scripts
COPY scheduler.sh ./
COPY startup.sh ./
RUN chmod +x scheduler.sh startup.sh
COPY scripts/ ./scripts/
RUN chmod +x scripts/*.sh
# Copy cron configuration
COPY crontab /etc/cron.d/parentzone-downloader
COPY scripts/crontab /etc/cron.d/parentzone-downloader
RUN chmod 0644 /etc/cron.d/parentzone-downloader
RUN crontab /etc/cron.d/parentzone-downloader
@@ -40,7 +39,7 @@ ENV PYTHONPATH=/app
EXPOSE 8080
# Expose volume for persistent data
VOLUME ["/app/snapshots", "/app/logs", "/app/parentzone_images"]
VOLUME ["/app/data/snapshots", "/app/data/logs", "/app/data/parentzone_images"]
# Start all services using startup script
CMD ["./startup.sh"]
CMD ["./scripts/startup.sh"]