19 lines
424 B
Docker
19 lines
424 B
Docker
FROM alpine:latest
|
|
|
|
# Install NGINX and tools
|
|
RUN apk add --no-cache nginx nginx-mod-http-brotli nginx-mod-http-headers-more bind-tools openssl curl certbot
|
|
|
|
# Copy custom config
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Copy snippets
|
|
COPY snippets/ /etc/nginx/snippets/
|
|
|
|
# Copy scripts
|
|
COPY scripts/ /scripts/
|
|
RUN chmod +x /scripts/*.sh
|
|
|
|
# Entrypoint
|
|
ENTRYPOINT ["/scripts/pre-flight.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|