Skip to content

Tag: dockerfile

How to refresh changes in swoole PHP

I created one folder with two files, one is index.php and one is Dockerfile and in terminal I run php index.php and it started on http://127.0.0.1:9501/, but when I change hello world in something else, it doesn’t show new change on that link.. it stays hello world. I am trying to learn Swoole and I don…

docker entrypoint sh file restarting

I am testing docker with my php project. Everything is ok in testing but if I add ENTRYPOINT, docker is restarting. Here is my docker compose file Dockerfile start-container.sh file I also print log for that docker image. I think my error is docker container is restarting after running start-container.sh file…

Unable to add PPA ondrejPHP in Dockerfile

I want to extend the httpd Image with PHP and some PHP Modules. My Dockerfile for this looks like this. The error I’m getting when building the Image is following What am I´m doing wrong? Edit: Thanks to @RJK On step 5/6 your are running add-apt-repository -y ppa:ondrejphp, it should be add-apt-reposito…

PECL Package Installation Fail In Docker

When installing opencensus-alpha from PECL package manager in docker as part of dockerfile, an error is thrown /bin/sh: pecl: not found Dockerfile Is there any easy way opencensus-alpha can be installed and enabled in a docker container Answer You’ll need the php7-pear package to get the pecl command, a…