ruiorz commented on issue #10852:
URL: https://github.com/apache/skywalking/issues/10852#issuecomment-1560647945

   skywalking_agent in my dockerfile:
   
   ```dockerfile
   FROM php:8.1-cli-alpine3.17
   
   # Install Skywalking
   RUN set -ex \
       && apk --update add --no-cache --virtual .sk-deps $PHPIZE_DEPS musl-dev 
llvm15-dev clang15-dev protobuf-c-compiler git \
       && apk add --no-cache protobuf \
       && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- 
--default-toolchain none -y \
       && export PATH="$PATH:/root/.cargo/bin" \
       && export RUSTFLAGS="-C target-feature=-crt-static" \
       && rustup default stable \
       && echo '[http]' >> /root/.cargo/config \
       && echo 'check-revoke = false' >> /root/.cargo/config \
       && echo 'timeout = 300' >> /root/.cargo/config \
       && echo 'low-speed-limit = 100' >> /root/.cargo/config \
       && echo '[net]' >> /root/.cargo/config \
       && echo 'retry = 10' >> /root/.cargo/config \
       && echo 'git-fetch-with-cli = true' >> /root/.cargo/config \
       && export MAKEFLAGS="-j$(nproc)" \
       && pecl install skywalking_agent-0.5.0 && docker-php-ext-enable 
skywalking_agent \
       && apk del --no-network .sk-deps \
       && rustup self uninstall -y \
       && docker-php-source delete \
       && rm -rf /usr/share/man /var/cache/apk/* /tmp/* /root/.cargo
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to