Giter Club home page Giter Club logo

Comments (3)

binabus avatar binabus commented on July 29, 2024

I inserted 'apk update ' in the Dockerfile. This does the trick for me.
# We need these system-level scritps to run WordPress successfully RUN apk update \ apk add --no-cache nginx mysql-client supervisor curl \ bash redis imagemagick-dev libpng-dev curl-dev libxml2-dev

from dockerwordpress.

yar-trach avatar yar-trach commented on July 29, 2024

I have the same problem. apk update didn't do a trick, I mean it does for this step, but it fails later on - I've got this error message:
configure: error: png.h not found. ERROR: Service 'wordpress' failed to build: The command '/bin/sh -c apk add --no-cache libtool build-base autoconf && docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) iconv gd mbstring fileinfo curl xmlreader xmlwriter spl ftp mysqli opcache && pecl install imagick && docker-php-ext-enable imagick && apk del libtool build-base autoconf' returned a non-zero code: 1

from dockerwordpress.

binabus avatar binabus commented on July 29, 2024

After changeing the Dockerfile as follows it works for me on Debian 9 as docker host.
To find out which package should be installed have look to https://pkgs.alpinelinux.org/packages and search for -dev packages like *ssh*-dev

FROM php:7.0.6-fpm-alpine
MAINTAINER Tomaz Zaman <[email protected]>

# We need these system-level scritps to run WordPress successfully
RUN apk --repository http://dl-3.alpinelinux.org/alpine/v3.6/community/ \
        --repository http://dl-3.alpinelinux.org/alpine/v3.6/main/ \
        --update \
    add --no-cache nginx mysql-client supervisor curl \
    bash redis imagemagick-dev libpng-dev curl-dev libxml2-dev libssh2-dev

# As per image documentation, this is how we install PHP modules
RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \
            iconv gd mbstring fileinfo curl xmlreader xmlwriter spl ftp mysqli opcache

# Install imagemagick for PHP
RUN apk --repository http://dl-3.alpinelinux.org/alpine/v3.6/community/ \
        --repository http://dl-3.alpinelinux.org/alpine/v3.6/main/ \
    add --no-cache libtool build-base autoconf \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && apk del libtool build-base autoconf

from dockerwordpress.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.