Skip to content

Instantly share code, notes, and snippets.

@EderRoger
Last active December 4, 2015 15:51
Show Gist options
  • Save EderRoger/fc818e91e12f27f71e41 to your computer and use it in GitHub Desktop.
Save EderRoger/fc818e91e12f27f71e41 to your computer and use it in GitHub Desktop.
Docker container - Nginx-plus
FROM ubuntu:14.04
MAINTAINER <your_email>
ENV REFRESHED_AT 2015-12-3
RUN apt-get -y update
RUN apt-get -y install wget
RUN mkdir -p /etc/ssl/nginx/
WORKDIR /etc/ssl/nginx
COPY ./CA.crt /etc/ssl/nginx/CA.crt
COPY ./nginx-repo.key /etc/ssl/nginx/nginx-repo.key
COPY ./nginx-repo.crt /etc/ssl/nginx/nginx-repo.crt
RUN wget http://nginx.org/keys/nginx_signing.key && sudo apt-key add nginx_signing.key
RUN apt-get -y install apt-transport-https libgnutls26 libcurl3-gnutls
RUN printf "deb https://plus-pkgs.nginx.com/ubuntu `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list
COPY ./90nginx /etc/apt/apt.conf.d/90nginx
RUN apt-get -y update
RUN apt-get -y install nginx-plus
CMD /usr/sbin/nginx -g "daemon off;"
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment