Migrate: entrypoint > dockerfile(npm ci) / Fix: ignore node_modules(sed)

This commit is contained in:
2025-12-18 23:18:30 +09:00
parent fe27faf3d9
commit 3af5b5f87c
2 changed files with 5 additions and 4 deletions
+3
View File
@@ -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
+2 -4
View File
@@ -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 \