Docker build error: STEP 11/24: COPY php.ini /etc/php8/php.ini Error: building at STEP "COPY php.ini /etc/php8/php.ini":

Hello,

I’m trying to build the official OpenEMR container image that doesn’t run as root so that OpenEMR can deploy to Red Hat OpenShift without modifying the security context. This involves ensuring OpenEMR doesn’t run on ports below 1024. In the Linux world, a non-root user cannot bind to a TCP port lower than 1024

However, when I get to step 11, I get an error:

STEP 11/24: COPY php.ini /etc/php8/php.ini
Error: building at STEP “COPY php.ini /etc/php8/php.ini”: checking on sources under “/var/tmp/libpod_builder3123260488/build”: copier: stat: “/php.ini”: no such file or directory

I’m not finding that file, though. Has anyone else seen that error?

Thank you!

Ryan

I solved the issue. I needed to clone the DevOps directory to my local system.

1 Like