Migrate: entrypoint > dockerfile(npm ci) / Fix: ignore node_modules(sed)
This commit is contained in:
@@ -17,6 +17,9 @@ RUN rm -rf /var/lib/apt/lists/*
|
|||||||
# Copy source
|
# Copy source
|
||||||
COPY ./src ./
|
COPY ./src ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm ci --unsafe-perm
|
||||||
|
|
||||||
# Init replied_ids.json
|
# Init replied_ids.json
|
||||||
RUN echo "[]" > replied_ids.json
|
RUN echo "[]" > replied_ids.json
|
||||||
|
|
||||||
|
|||||||
+2
-4
@@ -8,11 +8,9 @@ if [ -z "$UWUZU_HOST" ] || [ -z "$UWUZU_TOKEN" ] ||
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
npm ci --unsafe-perm
|
|
||||||
|
|
||||||
# Change line break
|
# 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
|
# Copy default memory
|
||||||
if [ ! -s /app/memory.db ]; then \
|
if [ ! -s /app/memory.db ]; then \
|
||||||
|
|||||||
Reference in New Issue
Block a user