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 {