normalize image
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||

|
||||
|
||||
# 🏔️ Alpine - Nginx
|
||||
    [<img src="https://img.shields.io/badge/github-11notes-blue?logo=github">](https://github.com/11notes)
|
||||
  
|
||||
|
||||
**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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;'
|
||||
|
||||
Reference in New Issue
Block a user