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>
This commit is contained in:
Michael Cammarata
2025-11-05 09:18:45 -05:00
committed by GitHub
parent 6b6028bb52
commit 996d9485cd

View File

@@ -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"]