Migrate: /app change line break
This commit is contained in:
+1
-5
@@ -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"]
|
||||
@@ -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 <<EOF > /app/config.json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user