Sign inSign up

philcryer/min-nginx

By philcryer

Updated almost 11 years ago

A minimal Docker image based on Alipine Linux running nginx (size: 6.5 MB)

Image
2

277

philcryer/min-nginx repository overview

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 <[email protected]>

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

Tag summary

Content type

Image

Digest

sha256:34cda4124

Size

2.7 MB

Last updated

almost 11 years ago

docker pull philcryer/min-nginx