This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/nginx/build/Dockerfile

18 lines
357 B
Docker
Raw Normal View History

2021-01-04 12:38:27 +01:00
FROM nginx:stable-alpine
RUN apk add --no-cache certbot
COPY entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
RUN mkdir /var/lib/certbot
COPY renew /etc/periodic/weekly/renew
RUN chmod +x /etc/periodic/weekly/renew
2021-01-09 15:48:30 +01:00
# Default.conf file is annoying
RUN rm -rf /etc/nginx/conf.d/*
2021-01-04 12:38:27 +01:00
RUN /usr/sbin/crond -f -d 8 &
ENTRYPOINT [ "./entrypoint.sh" ]