Public Repository

Last pushed: 2 years ago
Short Description
A minimal Docker image based on Alipine Linux running nginx (size: 6.5 MB)
Full Description

Overview

A minimal Docker image based on Alipine Linux running nginx.

Usage

docker run  -t -i -d -p 8080:80 philcryer/min-nginx

Test it

curl localhost:8080

Use it

Pass in your own html files when you issue the above command.

Dockerfile

I need to have this in github so I can setup automated builds, but until then, in the interest of transparency, here ya go:

FROM gliderlabs/alpine:3.1
MAINTAINER Phil Cryer <phil@philcryer.com>

RUN apk-install nginx \
    && mkdir -p usr/html \
    && rm /usr/html/index.html \
    && mkdir -p /tmp/nginx/client-body

COPY index.html /usr/html/

EXPOSE 80

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

Thanks

Docker Pull Command
Owner
philcryer

Comments (0)