From c5b5b6c0186d3328d35ce0461cb18efe283a9353 Mon Sep 17 00:00:00 2001 From: plowsof Date: Thu, 1 Aug 2024 22:46:28 +0100 Subject: [PATCH] add dockerfile for coolify previews --- Dockerfile_coolify | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile_coolify diff --git a/Dockerfile_coolify b/Dockerfile_coolify new file mode 100644 index 0000000..0eb590b --- /dev/null +++ b/Dockerfile_coolify @@ -0,0 +1,31 @@ +FROM python:3.9-slim AS builder + +WORKDIR /monero-docs + +COPY . /monero-docs + +RUN pip install -r requirements.txt + +RUN mkdocs build + +FROM nginx:alpine + +COPY --from=builder /monero-docs/public /usr/share/nginx/html + +# Inline Nginx configuration +RUN echo 'server { \ + listen 80; \ + root /usr/share/nginx/html; \ + index index.html index.htm; \ + error_page 404 /404.html; \ + location = /404.html { \ + internal; \ + } \ + location / { \ + try_files $uri $uri/ =404; \ + } \ +}' > /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"]