{"action":"opened","issue":{"url":"https://api.github.com/repos/jdeathe/centos-ssh-apache-php/issues/90","repository_url":"https://api.github.com/repos/jdeathe/centos-ssh-apache-php","labels_url":"https://api.github.com/repos/jdeathe/centos-ssh-apache-php/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/jdeathe/centos-ssh-apache-php/issues/90/comments","events_url":"https://api.github.com/repos/jdeathe/centos-ssh-apache-php/issues/90/events","html_url":"https://github.com/jdeathe/centos-ssh-apache-php/issues/90","id":132298315,"number":90,"title":"Could not open configuration file /etc/httpd/${APP_HOME_DIR}/vhost.conf","user":{"login":"MatthewHerbst","id":1287375,"avatar_url":"https://avatars.githubusercontent.com/u/1287375?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewHerbst","html_url":"https://github.com/MatthewHerbst","followers_url":"https://api.github.com/users/MatthewHerbst/followers","following_url":"https://api.github.com/users/MatthewHerbst/following{/other_user}","gists_url":"https://api.github.com/users/MatthewHerbst/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewHerbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewHerbst/subscriptions","organizations_url":"https://api.github.com/users/MatthewHerbst/orgs","repos_url":"https://api.github.com/users/MatthewHerbst/repos","events_url":"https://api.github.com/users/MatthewHerbst/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewHerbst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T00:34:55Z","updated_at":"2016-02-09T00:34:55Z","closed_at":null,"body":"So, I created my own image using this one as a base.\r\n\r\nMy Dockerfile:\r\n\r\n```\r\nFROM jdeathe/centos-ssh-apache-php:latest\r\nMAINTAINER xxx <xxx.yyy>\r\n\r\n# -----------------------------------------------------------------------------\r\n# Install Git, Node.js/npm, php-mysql\r\n# -----------------------------------------------------------------------------\r\nRUN curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -\r\nRUN rpm --rebuilddb\\\r\n        && yum --setopt=tsflags=nodocs -y install \\\r\n        git \\\r\n        nodejs \\\r\n        php-mysql \\\r\n        && yum versionlock add \\\r\n        && rm -rf /var/cache/yum/* \\\r\n        && yum clean all\r\n\r\n# -----------------------------------------------------------------------------\r\n# Populate the app home directory\r\n# -----------------------------------------------------------------------------\r\nADD package.json /var/www/app/\r\nADD gulpfile.js /var/www/app/\r\nADD src /var/www/app/src/\r\n\r\n# -----------------------------------------------------------------------------\r\n# Build the app\r\n# -----------------------------------------------------------------------------\r\nRUN npm --prefix /var/www/app/ install /var/www/app/ \\\r\n   && npm --prefix /var/www/app/ run prod \\\r\n   && cp -R /var/www/app/dist/* /var/www/app/public_html/\r\n\r\nEXPOSE 80 8443 443\r\n```\r\n\r\nThis builds fine, but when I go to the address of my container in my browser it doesn't connect (but just running this base image works fine). So, to investigate I went onto the host using `docker run -i -t xxxx /bin/bash` and found this:\r\n\r\n```\r\n[root@b93d38591ec0 /]# service httpd restart\r\nStopping httpd:                                            [FAILED]\r\nStarting httpd: httpd: Syntax error on line 1019 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/${APP_HOME_DIR}/vhost.conf: No such file or directory\r\n                                                           [FAILED]\r\n[root@b93d38591ec0 /]# echo $APP_HOME_DIR\r\n/var/www/app\r\n[root@b93d38591ec0 /]# ls /etc/httpd/                          \r\nconf  conf.d  logs  modules  run\r\n```\r\n\r\nI also tried adding in all the ENV declarations from this package into my Dockerfile but that had no effect. What's might be causing this issue? Clearly I'm missing something since the base image works fine.\r\n"}}