All checks were successful
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 26s
18 lines
344 B
Docker
18 lines
344 B
Docker
FROM certbot/certbot:latest
|
|
|
|
#SHELL ["/bin/ash", "-ex", "-c"]
|
|
|
|
# Install socat
|
|
RUN apk --no-cache add socat
|
|
|
|
# Copy scripts
|
|
COPY ./docker/scripts/ /opt/scripts/
|
|
RUN chmod 755 /opt/scripts/*.sh
|
|
|
|
# Expose port 380
|
|
EXPOSE 380
|
|
|
|
ENTRYPOINT /bin/sh -c 'trap exit TERM; while :; do /opt/scripts/1-renew-cert.sh ; sleep 12h & wait $(jobs -p); done;'
|
|
|
|
|