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 \