FROM ubuntu:21.10
RUN apt-get update -y \
&& apt-get install -y \
nginx \
supervisor \
certbot \
python3-certbot-nginx \
cron \
&& rm -rf /tmp/* \
&& rm -rf /var/lib/apt/lists/*
COPY ./rootfs /
EXPOSE 80
EXPOSE 443
CMD ["/usr/bin/supervisord"]