1
0
mirror of https://github.com/dcarrillo/docker-nginx.git synced 2024-11-15 01:01:13 +00:00
docker-nginx/README.md
dcarrillo be2413625f
Bump nginx to 1.23.3 and alpine base image to 3.17 (#24)
* Bump nginx to 1.23.3 and alpine base image to 3.17

* [chore] Update github actions
2023-03-16 20:35:42 +01:00

58 lines
842 B
Markdown

# minimal nginx
![build](https://github.com/dcarrillo/docker-nginx/workflows/CI/badge.svg)
Nginx docker image with a minimal set of modules.
Current modules:
- stream
- http_ssl_module
- http_v2_module
- http_stub_status_module
## Configuration
Edit [conf.env](conf.env)
```bash
NGINX_VERSION=x.xx.x # Nginx version to build from
DOCKER_IMAGE=dcarrillo/nginx # Docker image
```
## Build
Build locally:
```bash
./build.sh
```
Build locally and upload the image to a registry (you must be logged in to the registry)
```bash
./build.sh --push
```
Build locally, tag the image as latest and upload it to a registry (you must be logged in to the registry)
```bash
./build.sh --push --latest
```
## Testing
Prerequisites:
- docker
- openssl
- curl
```bash
# build local image
./build.sh
# run tests
./tests/test.sh
```