Dev setup `docker-compose` with local Dockerfile instead of image

Hi, I came across an error when attempting to run docker-compose up using a local Dockerfile.

# docker-compose.yml using build
  ...
  openemr:
    restart: always
    # use an image if you're not changing the build steps:
    #image: openemr/openemr:flex
    # if editing the Dockerfile, clone the devops repo and point to the path:
    build: ../openemr-devops/docker/openemr/flex-edge/
# error when running `docker-compose up`
httpd: Syntax error on line 480 of /etc/apache2/httpd.conf: Syntax error on line 13 of /etc/apache2/conf.d/ssl.conf: Cannot load modules/mod_ssl.so into server: Error relocating /var/www/modules/mod_ssl.so: SSL_CTX_set_post_handshake_auth: symbol not found

By the way, the default setup using an image from docker hub worked fine, and did not give the above error.

# docker-compose.yml using image
  ...
  openemr:
    restart: always
    # use an image if you're not changing the build steps:
    image: openemr/openemr:flex
    # if editing the Dockerfile, clone the devops repo and point to the path:
    #build: ../openemr-devops/docker/openemr/flex-edge/

The symptom seems similar to https://serverfault.com/questions/791409/cannot-load-modules-mod-ssl-so-into-server-etc-httpd-modules-mod-ssl-so-undef, but I don’t know how to troubleshoot from here. Any suggestions?