aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/Dockerfile
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-21 00:36:11 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-21 00:58:57 +0800
commitb176ed028f4c8dcc127bd8b9870050c9d76d6854 (patch)
tree81e7562435f9983732ca4015f21287f21ed60017 /docker/nginx/Dockerfile
parent782012e07f4d8ecb490d5e245988eba56a90efb9 (diff)
downloadcrupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.tar.gz
crupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.tar.bz2
crupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.zip
feat(nginx): move certbot to nginx.
Diffstat (limited to 'docker/nginx/Dockerfile')
-rw-r--r--docker/nginx/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile
index 86052b9..67d41d1 100644
--- a/docker/nginx/Dockerfile
+++ b/docker/nginx/Dockerfile
@@ -7,3 +7,6 @@ RUN pnpm install --frozen-lockfile && pnpm run build
FROM nginx:mainline
COPY --from=build-www /sites/www/dist /srv/www
ADD sites/www/favicon.ico /srv/www/favicon.ico
+RUN apt update && apt-get install -y tini certbot && rm -rf /var/lib/apt/lists/*
+ADD --chmod=755 certbot.bash nginx-wrapper.bash /app/
+CMD ["/usr/bin/tini", "--", "/app/nginx-wrapper.bash"]