Dockerfile 555 B

1234567891011121314151617
  1. FROM nginx:alpine
  2. RUN echo "Installing bootstrap utils"
  3. RUN apk add curl certbot openssl > /dev/null
  4. RUN echo ' \
  5. server { \
  6. listen [::]:80; \
  7. listen 80; \
  8. server_name %hostname%; \
  9. location /.well-known/acme-challenge/ { \
  10. root /var/www/certbot; \
  11. } \
  12. } \
  13. ' > /etc/nginx/conf.d/challenge.conf