Skip to content

Instantly share code, notes, and snippets.

@doomsbuster
Created December 30, 2016 20:35
Show Gist options
  • Save doomsbuster/bd645076f8a13cc639593eff109043f7 to your computer and use it in GitHub Desktop.
Save doomsbuster/bd645076f8a13cc639593eff109043f7 to your computer and use it in GitHub Desktop.
Apache Container
FROM ubuntu:14.04
MAINTAINER Mr. Doomsbuster <administrator@ashishdesai.com>
RUN apt-get -y update && apt-get -y install \
apache2 \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80
#!/bin/sh
if [ -z "$1" ]
then
exec "/usr/sbin/apachectl -D FOREGROUND"
else
exec "$@"
fi
@juzow13
Copy link

juzow13 commented Nov 17, 2017

Thanks for this gist. I was looking for a way to automatically start up apache in a docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment