diff --git a/Dockerfile b/Dockerfile index 7cabe94..7676ce0 100755 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,8 @@ COPY . . # Delete unnecessary files in WORKDIR (/app) folder (not caught by .dockerignore) RUN echo "**** removing unneeded files ****" -RUN rm -rf /requirements.txt +# Remove all files except .py files and entrypoint.sh (keep all directories) +RUN find / -type f -maxdepth 1 ! -name '*.py' ! -name 'entrypoint.sh' -delete # Run entrypoint.sh script ENTRYPOINT ["sh", "/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 4892818..b8376ac 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ mkdir -p /etc/cron.d # Read cron schedule from environment variable -CRON_SCHEDULE=${CRON_SCHEDULE:-"0 0 * * *"} # Default to midnight every day if not supplied +CRON_SCHEDULE=${CRON_SCHEDULE:-"* * * * *"} # Default to midnight every day if not supplied echo "Cron schedule: $CRON_SCHEDULE" @@ -15,7 +15,7 @@ else DRY_RUN_FLAG="" fi -# DRY_RUN_FLAG="--dry-run" +DRY_RUN_FLAG="--dry-run" echo "Dry run flag: $DRY_RUN_FLAG"