Migrate: /app change line break

This commit is contained in:
2025-12-18 19:19:24 +09:00
parent c8922ac2af
commit add327ddfe
2 changed files with 7 additions and 5 deletions
+1 -5
View File
@@ -17,9 +17,6 @@ RUN rm -rf /var/lib/apt/lists/*
# Copy package.json # Copy package.json
COPY ./src/package*.json ./ COPY ./src/package*.json ./
# Install dependencies
RUN npm ci --unsafe-perm
# Copy source # Copy source
COPY ./src ./ COPY ./src ./
@@ -36,8 +33,7 @@ COPY ./entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh
# Change line break # Change line break
RUN sed -i 's/\r$//' /app/docker-entrypoint.sh \ RUN sed -i 's/\r$//' /app/docker-entrypoint.sh
&& find /app -type f -exec sed -i 's/\r$//' {} \;
# Run # Run
ENTRYPOINT ["/app/docker-entrypoint.sh"] ENTRYPOINT ["/app/docker-entrypoint.sh"]
+6
View File
@@ -8,6 +8,12 @@ if [ -z "$UWUZU_HOST" ] || [ -z "$UWUZU_TOKEN" ] ||
exit 1 exit 1
fi fi
# Install dependencies
RUN npm ci --unsafe-perm
# Change line break
find /app -type f -exec sed -i 's/\r$//' {} \;
# Create config.json # Create config.json
cat <<EOF > /app/config.json cat <<EOF > /app/config.json
{ {