-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
22 lines (18 loc) · 825 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Original Dockerfile: https://github.com/nginxinc/docker-nginx/blob/b0e153a1b644ca8b2bd378b14913fff316e07cf2/stable/alpine/Dockerfile
FROM nginx:1.26.2-alpine
LABEL MAINTAINER="Kevin Krummenauer <[email protected]>"
RUN apk add --no-cache openssl
COPY resources/create-certs.sh /script/create-certs.sh
COPY resources/nginx-cert.conf /etc/nginx/nginx.conf
COPY resources/entrypoint.sh /docker-entrypoint.d/30_entrypoint.sh
RUN chmod +x /script/create-certs.sh /docker-entrypoint.d/30_entrypoint.sh
ENV CREATE_CERTS_WITH_PW="" \
CERTS_DIR=/data/certs \
CERT_HOSTNAME="abc.127.0.0.1.nip.io" \
CERT_EXPIRATION_DAYS="365" \
CA_EXPIRATION_DAYS="900"
HEALTHCHECK --start-period=1s \
--interval=5s \
--timeout=5s \
--retries=12 \
CMD nc -vz 127.0.0.1 443 || exit 1