php-gd warning when I combine nginx and php
Opened this issue · 0 comments
zWingz commented
Bug description
This is my php dockerfile
ARG base
FROM ${base}
ENV TRIGGER_REBUILD=1
RUN install-packages libgd3
RUN add-apt-repository -y ppa:ondrej/php
RUN install-packages php8.1
RUN install-packages php8.1-bcmath
RUN install-packages php8.1-curl
RUN install-packages php8.1-dev
RUN install-packages php8.1-gd
RUN install-packages php8.1-imagick
RUN install-packages php8.1-intl
RUN install-packages php8.1-mbstring
RUN install-packages php8.1-mysql
RUN install-packages php8.1-redis
RUN install-packages php8.1-sqlite3
RUN install-packages php8.1-xml
RUN install-packages php8.1-z
RUN wget https://getcomposer.org/download/latest-2.2.x/composer.phar -O /usr/bin/composer
RUN chmod +x /usr/bin/composer
This is my nginx dockerfile
ARG base
FROM ${base}
ENV TRIGGER_REBUILD=1
RUN add-apt-repository -y ppa:ondrej/nginx-mainline
RUN install-packages \
nginx \
nginx-extras \
&& mkdir -p /var/run/nginx
COPY nginx.conf /etc/nginx/nginx.conf
## The directory relative to your git repository that will be served by Nginx
# ENV APACHE_DOCROOT_IN_REPO="public"
ENV NGINX_DOCROOT_IN_REPO="public"
And this is dazzle.yml
combiner:
combinations:
- name: base
chunks:
- tool-docker
- name: php
ref:
- base
chunks:
- tool-zsh
- tool-nginx
- php
but there are warning when exec php -v
But if merge the nginx and php dockerfile like https://github.com/gitpod-io/workspace-images/blob/main/chunks/tool-nginx/Dockerfile, It work fine
Steps to reproduce
use my dockerfile to build a php image
Expected behavior
php work fine
Example repository
No response
Anything else?
No response