20 lines
615 B
Docker
20 lines
615 B
Docker
FROM ubuntu:jammy
|
|
|
|
RUN apt-get -q update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
|
cron vim ssh rsync \
|
|
letsencrypt \
|
|
python3-certbot-apache \
|
|
python3-certbot-nginx \
|
|
&& apt-get clean \
|
|
&& for dir in apt dpkg cache log; do \
|
|
if [[ -e /var/lib/apt/lists/${dir} ]]; then \
|
|
rm -rf /var/lib/apt/lists/${dir}; \
|
|
else \
|
|
true ; \
|
|
fi ; \
|
|
done
|
|
|
|
COPY /Dockerfile.cron /Dockerfile
|
|
|
|
ENTRYPOINT [ "cron", "-f" ] |