docker-wordpress-universal/nginx/Dockerfile

4 lines
254 B
Docker
Raw Normal View History

2021-03-17 01:12:34 +01:00
FROM nginx:alpine
RUN apk add openssl
RUN openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com" -addext "subjectAltName=DNS:mydomain.com" -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt