update: scaffolding for nginx
This commit is contained in:
parent
d89dd4f315
commit
fb48a0fa04
7 changed files with 163 additions and 24 deletions
25
nginx/Dockerfile
Normal file
25
nginx/Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# Dockerfile :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/06/12 16:42:38 by maiboyer #+# #+# #
|
||||
# Updated: 2025/06/12 18:15:38 by maiboyer ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
RUN mkdir -p /etc/nginx/ && \
|
||||
mkdir -p /etc/ssl/certs && \
|
||||
mkdir -p /etc/ssl/private && \
|
||||
apk add openssl && \
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
|
||||
-keyout /etc/ssl/private/nginx-selfsigned.key \
|
||||
-out /etc/ssl/certs/nginx-selfsigned.crt \
|
||||
-subj "/C=FR/OU=student/CN=${NGINX_DOMAIN}"
|
||||
|
||||
COPY ./17-add-template-prefix.sh /docker-entrypoint.d/
|
||||
COPY ./conf /etc/nginx/templates
|
||||
Loading…
Add table
Add a link
Reference in a new issue