diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0733591 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Ensure shell scripts always use LF line endings on all platforms +*.sh text eol=lf + +# Ensure other text files maintain consistent line endings +* text=auto diff --git a/Dockerfile b/Dockerfile index 46b299b..e1b0b24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,7 @@ COPY --from=backend /usr/local/bin /usr/local/bin EXPOSE 80 COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh +# Convert line endings to LF (fixes Windows CRLF issues) and make executable +RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]