github.com/naphatkrit/deis@v1.12.3/router/Dockerfile (about)

     1  FROM alpine:3.2
     2  
     3  # install common packages
     4  RUN apk add --update-cache \
     5  	bash \
     6  	curl \
     7  	geoip \
     8  	libssl1.0 \
     9  	openssl \
    10  	pcre \
    11  	sudo \
    12  	&& rm -rf /var/cache/apk/*
    13  
    14  # install confd
    15  RUN curl -sSL -o /usr/local/bin/confd https://s3-us-west-2.amazonaws.com/opdemand/confd-git-73f7489 \
    16    && chmod +x /usr/local/bin/confd
    17  
    18  # add nginx user
    19  RUN addgroup -S nginx && \
    20    adduser -S -G nginx -H -h /opt/nginx -s /sbin/nologin -D nginx
    21  
    22  COPY rootfs /
    23  
    24  # compile nginx from source
    25  RUN build
    26  
    27  CMD ["boot"]
    28  EXPOSE 80 2222 9090
    29  
    30  ENV DEIS_RELEASE 1.12.3