Public Repository

Last pushed: 2 years ago
Short Description
simple nginx container
Full Description

FROM chocko/ubuntu:local

MAINTAINER chocko

RUN sudo apt-get install -y software-properties-common && \
sudo add-apt-repository ppa:nginx/stable -y && \
sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo apt-get install -y vim

RUN sudo apt-get install -y nginx

RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log && \
sudo rm /etc/nginx/sites-enabled/default && \
ln -s /srv/www/nginx.conf /etc/nginx/sites-enabled/

EXPOSE 80 443

CMD ["nginx", "-g", "daemon off;"]

Docker Pull Command
Owner
chocko