normalize image

This commit is contained in:
ElevenNotes
2024-09-18 21:03:47 +02:00
parent 3418c03ef0
commit a303f0fa7c
4 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
![Banner](https://github.com/11notes/defaults/blob/main/static/img/banner.png?raw=true)
# 🏔️ Alpine - Nginx
![size](https://img.shields.io/docker/image-size/11notes/nginx/1.26.2?color=0eb305) ![version](https://img.shields.io/docker/v/11notes/nginx/1.26.2?color=eb7a09) ![pulls](https://img.shields.io/docker/pulls/11notes/nginx?color=2b75d6) ![stars](https://img.shields.io/docker/stars/11notes/nginx?color=e6a50e) [<img src="https://img.shields.io/badge/github-11notes-blue?logo=github">](https://github.com/11notes)
![size](https://img.shields.io/docker/image-size/11notes/nginx/1.26.2?color=0eb305) ![version](https://img.shields.io/docker/v/11notes/nginx/1.26.2?color=eb7a09) ![pulls](https://img.shields.io/docker/pulls/11notes/nginx?color=2b75d6)
**Nginx base image with additional plugins and custom compiled**
@@ -53,6 +53,8 @@ networks:
| `DEBUG` | Show debug information | |
| `NGINX_DYNAMIC_RELOAD` | Enable reload of nginx on configuration changes in /nginx/etc (only on successful configuration test!) | |
# SOURCE
* [11notes/nginx](https://github.com/11notes/docker-nginx)
# PARENT IMAGE
* [11notes/alpine:stable](https://hub.docker.com/r/11notes/alpine)

View File

@@ -107,6 +107,7 @@
COPY --from=build /etc/nginx/ /etc/nginx
COPY --from=build /usr/lib/nginx/modules/ /etc/nginx/modules
ENV APP_NAME="nginx"
ENV APP_VERSION=1.26.2
ENV APP_ROOT=/nginx
# :: Run

View File

@@ -111,6 +111,7 @@
COPY --from=build /etc/nginx/ /etc/nginx
COPY --from=build /usr/lib/nginx/modules/ /etc/nginx/modules
ENV APP_NAME="nginx"
ENV APP_VERSION=1.26.2
ENV APP_ROOT=/nginx
# :: Run

View File

@@ -1,6 +1,6 @@
#!/bin/ash
if [ ! -f "${APP_ROOT}/ssl/default.crt" ]; then
elevenLogJSON info "creating default certificate"
elevenLogJSON debug "creating default certificate"
openssl req -x509 -newkey rsa:4096 -subj "/C=XX/ST=XX/L=XX/O=XX/OU=XX/CN=${APP_NAME}" \
-keyout "${APP_ROOT}/ssl/default.key" \
-out "${APP_ROOT}/ssl/default.crt" \
@@ -13,7 +13,7 @@
/sbin/inotifyd /usr/local/bin/io.sh /nginx/etc:cdnym &
fi
elevenLogJSON info "starting ${APP_NAME}"
elevenLogJSON info "starting ${APP_NAME} (${APP_VERSION})"
set -- "nginx" \
-g \
'daemon off;'