diff --git a/Dockerfile b/Dockerfile index e786f77..8c5912f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,12 +79,12 @@ COPY --from=builder /usr/src/microsoft-rewards-script/dist ./dist COPY --from=builder /usr/src/microsoft-rewards-script/package*.json ./ COPY --from=builder /usr/src/microsoft-rewards-script/node_modules ./node_modules -# Copy runtime scripts with proper permissions from the start +# Copy runtime scripts with proper permissions and normalize line endings for non-Unix users COPY --chmod=755 src/run_daily.sh ./src/run_daily.sh COPY --chmod=644 src/crontab.template /etc/cron.d/microsoft-rewards-cron.template COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh -RUN chmod 755 /usr/local/bin/entrypoint.sh \ - && sed -i 's/\r$//' /usr/local/bin/entrypoint.sh +RUN sed -i 's/\r$//' /usr/local/bin/entrypoint.sh \ + && sed -i 's/\r$//' ./src/run_daily.sh # Entrypoint handles TZ, initial run toggle, cron templating & launch ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]