From 37b680c6f5d0366af2369713c049ab844658c7a6 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Wed, 17 Dec 2025 01:38:14 +0900 Subject: [PATCH] Fix: line break / Fix: directory --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 81f1830..7838f8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY ./src/package.json ./ RUN npm install # Copy source -COPY ./src ./src +COPY ./src ./ # Create replied_ids.json RUN touch replied_ids.json @@ -20,7 +20,9 @@ COPY ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh # Change line break -RUN find /entrypoint.sh /app -type f -exec sed -i 's/\r$//' {} + +RUN apk add --no-cache dos2unix +RUN dos2unix /entrypoint.sh +RUN find /app -type f -exec dos2unix {} \; # Run entrypoint ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file