Created
February 16, 2016 02:21
-
-
Save thomasleveil/bc3285de4de86c5a2373 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:1.9.9 | |
MAINTAINER Jason Wilder [email protected] | |
# Install wget and install/updates certificates | |
RUN apt-get update \ | |
&& apt-get install -y -q --no-install-recommends \ | |
ca-certificates \ | |
wget \ | |
&& apt-get clean \ | |
&& rm -r /var/lib/apt/lists/* | |
# Configure Nginx and apply fix for very long server names | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \ | |
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf | |
# Install Forego | |
RUN wget -P /usr/local/bin https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/forego \ | |
&& chmod u+x /usr/local/bin/forego | |
ENV DOCKER_GEN_VERSION 0.5.0 | |
#RUN wget https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \ | |
# && tar -C /usr/local/bin -xvzf docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \ | |
# && rm /docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz | |
## docker-gen binary produced from https://github.com/baptistedonaux/docker-gen/commit/2b9600c142c5adf2493e0c577b8f295df4b37a27 | |
COPY ./docker-gen /usr/local/bin/docker-gen | |
RUN chmod +x /usr/local/bin/docker-gen | |
COPY . /app/ | |
WORKDIR /app/ | |
ENV DOCKER_HOST unix:///tmp/docker.sock | |
VOLUME ["/etc/nginx/certs"] | |
ENTRYPOINT ["/app/docker-entrypoint.sh"] | |
CMD ["forego", "start", "-r"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment