mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
Merge pull request #539 from MODSetter/dev
fix: add dos2unix to Dockerfile to handle line endings for entrypoint…
This commit is contained in:
commit
2cf9fa7a39
1 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
libsm6 \
|
||||
libxext6 \
|
||||
libxrender1 \
|
||||
dos2unix \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Update certificates and install SSL tools
|
||||
|
|
@ -64,8 +65,9 @@ RUN pip install playwright && \
|
|||
COPY . .
|
||||
|
||||
# Copy and set permissions for entrypoint script
|
||||
# Use dos2unix to ensure LF line endings (fixes CRLF issues from Windows checkouts)
|
||||
COPY scripts/docker/entrypoint.sh /app/scripts/docker/entrypoint.sh
|
||||
RUN chmod +x /app/scripts/docker/entrypoint.sh
|
||||
RUN dos2unix /app/scripts/docker/entrypoint.sh && chmod +x /app/scripts/docker/entrypoint.sh
|
||||
|
||||
# Prevent uvloop compatibility issues
|
||||
ENV PYTHONPATH=/app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue