adding images to volume
Some checks failed
Build Docker Image / build (push) Failing after 27s

This commit is contained in:
Tudor Sitaru
2025-10-10 16:49:30 +01:00
parent ba09085e4b
commit 802c9eb0b9
2 changed files with 11 additions and 8 deletions

View File

@@ -19,9 +19,10 @@ COPY *config.json ./
# Create output directories # Create output directories
RUN mkdir -p /app/snapshots /app/logs RUN mkdir -p /app/snapshots /app/logs
# Copy scheduler script # Copy scripts
COPY scheduler.sh ./ COPY scheduler.sh ./
RUN chmod +x scheduler.sh COPY startup.sh ./
RUN chmod +x scheduler.sh startup.sh
# Copy cron configuration # Copy cron configuration
COPY crontab /etc/cron.d/parentzone-downloader COPY crontab /etc/cron.d/parentzone-downloader
@@ -35,8 +36,11 @@ RUN touch /var/log/cron.log
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app ENV PYTHONPATH=/app
# Expose port for web server
EXPOSE 8080
# Expose volume for persistent data # Expose volume for persistent data
VOLUME ["/app/snapshots", "/app/logs", "/app/parentzone_images"] VOLUME ["/app/snapshots", "/app/logs", "/app/parentzone_images"]
# Start cron and keep container running # Start all services using startup script
CMD ["sh", "-c", "cron && tail -f /var/log/cron.log"] CMD ["./startup.sh"]

View File

@@ -1,4 +1,4 @@
version: '3.8' version: "3.8"
services: services:
parentzone-downloader: parentzone-downloader:
@@ -18,10 +18,9 @@ services:
- ./logs:/app/logs - ./logs:/app/logs
# Mount your config file # Mount your config file
- ./config.json:/app/config.json:ro - ./config.json:/app/config.json:ro
ports:
- "8080:8080"
restart: unless-stopped restart: unless-stopped
# Optional: expose a port if you want to add a web interface later
# ports:
# - "8080:8080"
volumes: volumes:
snapshots: snapshots: