FROM haproxy:alpine as production RUN apk add openssl certbot py-pip RUN pip install certbot-plugin-gandi COPY letsencrypt-hook-deploy-concatenante.sh / COPY letsencrypt.sh /usr/local/sbin/ COPY letsencrypt-renew-cron.sh /etc/periodic/daily/letsencrypt-renew COPY auto-generate-certs.sh /usr/local/sbin/ COPY docker-entrypoint.sh /usr/local/bin/ RUN rm /docker-entrypoint.sh RUN ln -s /usr/local/bin/docker-entrypoint.sh / RUN chmod 775 docker-entrypoint.sh ADD haproxy.conf /usr/local/etc/haproxy/haproxy.cfg