From 3af5b5f87c0e19eb8c703d1862563472f0a19360 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Thu, 18 Dec 2025 23:18:30 +0900 Subject: [PATCH] Migrate: entrypoint > dockerfile(npm ci) / Fix: ignore node_modules(sed) --- Dockerfile | 3 +++ entrypoint.sh | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d929af..dca0e37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ RUN rm -rf /var/lib/apt/lists/* # Copy source COPY ./src ./ +# Install dependencies +RUN npm ci --unsafe-perm + # Init replied_ids.json RUN echo "[]" > replied_ids.json diff --git a/entrypoint.sh b/entrypoint.sh index 83d2df8..63271c4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,11 +8,9 @@ if [ -z "$UWUZU_HOST" ] || [ -z "$UWUZU_TOKEN" ] || exit 1 fi -# Install dependencies -npm ci --unsafe-perm - # Change line break -find /app -type f -exec sed -i 's/\r$//' {} \; +find /app -type d -name "node_modules" -prune -o \ + -type f -name "*.js" -exec sed -i 's/\r$//' {} \; # Copy default memory if [ ! -s /app/memory.db ]; then \