diff --git a/Dockerfile b/Dockerfile index 537cd9d..05754aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ ENV TZ=Europe/Brussels RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone COPY update_and_run.sh /app -RUN chmod +x /app/update_and_run.sh -CMD ["./update_and_run.sh"] -ENTRYPOINT ["sh", "-c", "./update_and_run.sh"] \ No newline at end of file +# Normalize line endings (Windows CRLF -> LF) and ensure readable +RUN sed -i 's/\r$//' /app/update_and_run.sh && chmod a+r /app/update_and_run.sh + +# Single entrypoint: run via sh (no exec bit required, survives noexec mounts) +ENTRYPOINT ["sh", "/app/update_and_run.sh"] \ No newline at end of file