force apt update before certbot install

This commit is contained in:
Martin McKeaveney 2025-01-29 16:48:12 +00:00
parent c85340eb39
commit 7f55db4bf5
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ COPY hosting/single/ssh/sshd_config /etc/
COPY hosting/single/ssh/ssh_setup.sh /tmp
# setup letsencrypt certificate
RUN apt-get install -y certbot python3-certbot-nginx
RUN apt-get update && apt-get install -y certbot python3-certbot-nginx
COPY hosting/letsencrypt /app/letsencrypt
RUN chmod +x /app/letsencrypt/certificate-request.sh /app/letsencrypt/certificate-renew.sh