Browse Source

added nginx-envtpl

pull/23/head
Johannes Schickling 8 years ago
parent
commit
3d249540ba
  1. 1
      README.md
  2. 11
      nginx-envtpl/Dockerfile
  3. 9
      nginx-envtpl/README.md
  4. 5
      nginx-envtpl/entrypoint.sh

1
README.md

@ -12,6 +12,7 @@ Collection of lightweight and ready-to-use docker images
* **[Latex](https://github.com/schickling/dockerfiles/tree/master/latex)** - Full texlive distribution
* **[Mailcatcher](https://github.com/schickling/dockerfiles/tree/master/mailcatcher)** - Extra small mailcatcher image
* **[mysql-backup-s3](https://github.com/schickling/dockerfiles/tree/master/mysql-backup-s3)** - Backup MySQL to S3 (supports periodic backups)
* **[nginx-envtpl](https://github.com/schickling/dockerfiles/tree/master/nginx-envtpl)** - Nginx image with support for enviornment variables using [envtpl](https://github.com/andreasjansson/envtpl)
* **[NodeJS](https://github.com/schickling/dockerfiles/tree/master/nodejs)** - Minimal NodeJS + NPM image
* **[Octave](https://github.com/schickling/dockerfiles/tree/master/octave)** - Lightweight ocatve development environment
* **[OpenCV](https://github.com/schickling/dockerfiles/tree/master/opencv)** - Lightweight ready-to use OpenCV image

11
nginx-envtpl/Dockerfile

@ -0,0 +1,11 @@
FROM nginx:1.9
MAINTAINER Johannes Schickling "schickling.j@gmail.com"
RUN apt-get update && apt-get install -y python-pip
RUN pip install envtpl
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]

9
nginx-envtpl/README.md

@ -0,0 +1,9 @@
# nginx-envtpl
Nginx image with support for enviornment variables using [envtpl](https://github.com/andreasjansson/envtpl)
## Usage
```sh
$ docker run -d -p 80:80 -v ./nginx.conf.tpl:/etc/nginx/nginx.conf.tpl schickling/nginx-envtpl
```

5
nginx-envtpl/entrypoint.sh

@ -0,0 +1,5 @@
#!/bin/sh
envtpl /etc/nginx/nginx.conf.tpl
exec "$@"
Loading…
Cancel
Save