From add327ddfe4b88e32649749f54bceb275e1e4853 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Thu, 18 Dec 2025 19:19:24 +0900 Subject: [PATCH] Migrate: /app change line break --- Dockerfile | 6 +----- entrypoint.sh | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36c9180..8e9ac45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,6 @@ RUN rm -rf /var/lib/apt/lists/* # Copy package.json COPY ./src/package*.json ./ -# Install dependencies -RUN npm ci --unsafe-perm - # Copy source COPY ./src ./ @@ -36,8 +33,7 @@ COPY ./entrypoint.sh /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh # Change line break -RUN sed -i 's/\r$//' /app/docker-entrypoint.sh \ - && find /app -type f -exec sed -i 's/\r$//' {} \; +RUN sed -i 's/\r$//' /app/docker-entrypoint.sh # Run ENTRYPOINT ["/app/docker-entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 345360e..d0598de 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,12 @@ if [ -z "$UWUZU_HOST" ] || [ -z "$UWUZU_TOKEN" ] || exit 1 fi +# Install dependencies +RUN npm ci --unsafe-perm + +# Change line break +find /app -type f -exec sed -i 's/\r$//' {} \; + # Create config.json cat < /app/config.json {