nginx/fpm --> unit

This commit is contained in:
mercury
2022-12-18 01:57:25 +04:00
parent ae9cdbe648
commit bfa70c0a8b
16 changed files with 35 additions and 5192 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
from php:8.1-fpm
from nginx/unit:1.29.0-php8.1
run apt update && apt install -y libssh2-1-dev && pecl install https://pecl.php.net/get/ssh2-1.3.1.tgz
ARG IP
run mkdir /cert && \
openssl req -newkey rsa:2048 -sha256 -nodes \
-keyout /cert/nginx_private.key -x509 -days 365 -out /cert/nginx_public.pem \
-subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=$IP"
-subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=$IP" && \
cat /cert/nginx_private.key /cert/nginx_public.pem > /docker-entrypoint.d/cert.pem
workdir /app