Skip to content

Commit

Permalink
HTTPD process running in foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 9, 2016
1 parent d56454f commit 313aa89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ LABEL ImageName=$imagename
LABEL ImageOS=centos7
LABEL Version=$version

LABEL Build docker build --rm --tag $registry/$maintainer/$imagename:$tagname .
LABEL Build docker build --rm --tag $registry/$maintainer/$imagename .

# Install deps.
RUN yum -y install \
httpd \
mod_ssl \
&& yum clean all
&& yum clean all

COPY httpd-foreground /usr/local/bin/

EXPOSE 80
CMD ["httpd-foreground"]
8 changes: 7 additions & 1 deletion httpd-foreground
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
https://raw.githubusercontent.com/docker-library/httpd/master/2.4/httpd-foreground
#!/bin/sh
set -e

# Apache gets grumpy about PID files pre-existing
rm -f /etc/httpd/logs/httpd.pid

exec httpd -DFOREGROUND

0 comments on commit 313aa89

Please sign in to comment.