image-minify-api
image-minify-api copied to clipboard
Docker support
These instructions work for me. If you think this is a good solution, I can write a small documentation. Let me know if you have something in mind of structure of documentation, where or how to add instructions for Docker.
clone repository docker-compose up -d docker ps ##check if there are 2 images running, get the id of the php image docker exec -it id_of_running_image sh cd .. composer install ##composer is preinstalled on this image
/usr/bin/cjpeg on cjpeg location folder mysql on database host image-minify-api on database image on root password image on user image on password
execute php bin/console image-minify-api:setup
I get an error when following the instructions, at docker-compose up -d:
ERROR: Service 'php' failed to build: The command '/bin/sh -c if [ ${INSTALL_PNGQUANT} = true ]; then apk add --no-cache --repository "http://dl-4.alpinelinux.org/alpine/edge/testing" pngquant ;fi' returned a non-zero code: 1
Full Log: error.txt