logo NodeSeekbeta

codesandbox的docker phper如何添加gd curl模块的支持呢

https://codesandbox.io/

codesandbox的docker phper如何添加gd curl模块的支持呢

安装了 php -i 也显示可用 可是 phpinfo就没有gd'等模块

不知道什么原因

  • FROM php:8

    RUN apt-get update && apt-get install -y --no-install-recommends git

    RUN apt-get update -y && apt-get install -y libpng-dev libwebp-dev libjpeg-dev libfreetype6-dev

    RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp

    RUN docker-php-ext-install gd

    Install PHP & Composer

    RUN apt update -y && DEBIAN_FRONTEND=noninteractive apt install -y curl git unzip &&
    cd ~ &&
    curl -sS https://getcomposer.org/installer -o composer-setup.php &&
    php composer-setup.php --install-dir=/usr/local/bin --filename=composer &&
    composer --version

    Install Node v16 and NPM (which is needed for the LSP)

    RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - &&
    apt update -y && apt install -y nodejs

    EXPOSE 8080

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有15788位seeker

🎉欢迎新用户🎉