Public Repository

Last pushed: a year ago
Short Description
Basic Nginx Used for Local Dev
Full Description

Dockerfile

FROM phusion/baseimage
MAINTAINER Chad La Vita chadlavita101@gmail.com

CMD ["/sbin/my_init"]

RUN apt-get update && apt-get install -y python-software-properties
RUN add-apt-repository ppa:nginx/stable
RUN apt-get update && apt-get install -y nginx

RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log

RUN mkdir -p /etc/service/nginx
ADD start.sh /etc/service/nginx/run
RUN chmod +x /etc/service/nginx/run

EXPOSE 80

RUN apt-get clean && rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*

Docker Pull Command
Owner
chadlavita

Comments (0)