Polished
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
FROM debian:bookworm
|
||||
|
||||
RUN apt-get update; apt-get full-upgrade -y
|
||||
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y
|
||||
|
||||
COPY project/buildtime/gen_selfisgned_cert.sh /tmp/buildtime/gen_selfisgned_cert.sh
|
||||
RUN /bin/sh /tmp/buildtime/gen_selfsigned_cert.sh
|
||||
|
||||
COPY project/entrypoint/entrypoint.sh /entrypoint/entrypoint.sh
|
||||
COPY project/entrypoint/install-nginx-mods.sh /entrypoint/install-nginx-mods.sh
|
||||
ENTRYPOINT ["/bin/sh", "/entrypoint/entrypoint.sh"]
|
||||
|
11
nginx-srv/entrypoint/cert.sh
Normal file
11
nginx-srv/entrypoint/cert.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
# Generate a fresh cert every time
|
||||
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
|
||||
-keyout /etc/ssl/private/ssl-cert-snakeoil.key \
|
||||
-out /etc/ssl/certs/ssl-cert-snakeoil.pem \
|
||||
-subj "/C=US/ST=Exam"
|
||||
|
||||
echo "Generated self-signed cert:"
|
||||
ls -l /etc/ssl/private/
|
||||
ls -l /etc/ssl/certs/
|
||||
###
|
Reference in New Issue
Block a user