Fix: line break / Fix: directory

This commit is contained in:
2025-12-17 01:38:14 +09:00
parent ed01b58d2e
commit 37b680c6f5
+4 -2
View File
@@ -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"]