Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-gd warning when I combine nginx and php #57

Open
zWingz opened this issue Sep 7, 2022 · 0 comments
Open

php-gd warning when I combine nginx and php #57

zWingz opened this issue Sep 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zWingz
Copy link

zWingz commented Sep 7, 2022

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

image

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

@zWingz zWingz added the bug Something isn't working label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant