Migrate: copy default memory

This commit is contained in:
2025-12-18 20:00:05 +09:00
parent add327ddfe
commit f148077697
2 changed files with 6 additions and 5 deletions
-5
View File
@@ -20,11 +20,6 @@ COPY ./src/package*.json ./
# Copy source
COPY ./src ./
# Copy default memory
RUN if [ ! -s /app/memory.db ]; then \
cp /app/memory.default.db /app/memory.db; \
fi
# Create replied_ids.json
RUN touch replied_ids.json
+6
View File
@@ -14,6 +14,12 @@ RUN npm ci --unsafe-perm
# Change line break
find /app -type f -exec sed -i 's/\r$//' {} \;
# Copy default memory
if [ ! -s /app/memory.db ]; then \
cp /app/memory.default.db /app/memory.db; \
rm -f /app/memory.default.db; \
fi
# Create config.json
cat <<EOF > /app/config.json
{