File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ # Enforce Unix line endings for shell scripts
2+ * .sh text eol =lf
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ RUN useradd -m -u 1000 appuser
1919# Fix permissions for GitHub Actions workspace
2020RUN mkdir -p /github/workspace && chown -R appuser:appuser /github
2121
22- # Install gosu for easy step-down from root
23- RUN apt-get update && apt-get install -y --no-install-recommends gosu && rm -rf /var/lib/apt/lists/*
22+ # Install gosu and dos2unix for entrypoint management
23+ RUN apt-get update && apt-get install -y --no-install-recommends gosu dos2unix && rm -rf /var/lib/apt/lists/*
2424
2525# Copy requirements file first to leverage cache
2626COPY requirements.txt /app/requirements.txt
@@ -38,8 +38,8 @@ RUN chmod +x /action_entrypoint.py
3838
3939# Copy and setup runtime entrypoint
4040COPY --chown=appuser:appuser entrypoint.sh /entrypoint.sh
41- # Fix Windows line endings (CRLF) which cause "exec format error"
42- RUN sed -i 's/ \r $//' /entrypoint.sh && chmod +x /entrypoint.sh
41+ # Checksum and fix line endings
42+ RUN dos2unix /entrypoint.sh && chmod +x /entrypoint.sh
4343
4444# Set Python path to use local SDK
4545ENV PYTHONPATH=/app
You can’t perform that action at this time.
0 commit comments