Now stuff is installed in the container instead of the image

This commit is contained in:
eroncero
2025-08-05 15:41:26 +02:00
parent 8df5735249
commit 0e9c43d34d
12 changed files with 55 additions and 37 deletions

View File

@@ -3,12 +3,8 @@ FROM debian:bookworm
ARG DEBIAN_FRONTEND=noninteractive
ARG DEBCONF_NONINTERACTIVE_SEEN=true
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y; apt-get install nginx certbot python3-certbot-nginx openssl vim curl iputils-ping -y
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y; apt-get install nginx certbot python3-certbot-nginx openssl vim curl iputils-ping -y --download-only
COPY project/entrypoint/entrypoint.sh /entrypoint/entrypoint.sh
COPY project/entrypoint/gen-cert.sh /entrypoint/gen-cert.sh
#COPY project/entrypoint/install-nginx-mods.sh /entrypoint/install-nginx-mods.sh
RUN mkdir /tmp/buildtime && cp /etc/nginx/sites-available/default /tmp/buildtime/default
RUN mkdir /tmp/buildtime/www && cp -r /var/www/. /tmp/buildtime/www/
RUN mkdir /tmp/buildtime/letsencrypt && cp -r /etc/letsencrypt/. /tmp/buildtime/letsencrypt/
ENTRYPOINT ["/bin/sh", "/entrypoint/entrypoint.sh"]