mirror of
https://gitee.com/houhuan/TrendRadar.git
synced 2025-12-21 12:47:16 +08:00
fix: 强制 entrypoint.sh 为 LF
This commit is contained in:
parent
4f4b13e853
commit
d1b8f8a082
@ -23,9 +23,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY main.py .
|
||||
COPY docker/manage.py .
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
# 复制 entrypoint.sh 并强制转换为 LF 格式
|
||||
COPY docker/entrypoint.sh /entrypoint.sh.tmp
|
||||
RUN sed -i 's/\r$//' /entrypoint.sh.tmp && \
|
||||
mv /entrypoint.sh.tmp /entrypoint.sh && \
|
||||
chmod +x /entrypoint.sh && \
|
||||
chmod +x manage.py && \
|
||||
mkdir -p /app/config /app/output
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user