This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user