From 996d9485cd14431f40d1880d04d3cb9b49c50c53 Mon Sep 17 00:00:00 2001 From: Michael Cammarata <55518507+mgrimace@users.noreply.github.com> Date: Wed, 5 Nov 2025 09:18:45 -0500 Subject: [PATCH] Dockerfile, handle non-unix docker users (#409) * Preliminary dockerization with scheduling Porting working docker implementation (scheduling, etc.) into revised v2 * Update dockerfile to fix line endings for non-unix docker users * Update dockerfile to fix line endings for non-unix docker users --------- Co-authored-by: Netsky <56271887+TheNetsky@users.noreply.github.com> --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7a6d25d..e786f77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,6 +83,8 @@ COPY --from=builder /usr/src/microsoft-rewards-script/node_modules ./node_module 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 # Entrypoint handles TZ, initial run toggle, cron templating & launch ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]