From 4235000b5061bdd3985746589359f3a6bc46620e Mon Sep 17 00:00:00 2001 From: Amirul Islam Redwan Date: Sun, 6 Dec 2026 06:30:39 +0600 Subject: [PATCH] Dockerfile: multi-stage build that fetches the site from Gitea --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fbdcbde..bebd681 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,9 @@ -# Huurbaken — static site served with nginx +# Huurbaken - static site served with nginx. +# Stage 1 fetches the site from the public Gitea repo (Coolify builds this +# app from the stored Dockerfile only, so the files are pulled in here). +FROM alpine/git AS fetch +RUN git clone --depth 1 --branch main https://git.auraajenticai.cloud/khondokar/huurbaken.git /site +# Stage 2 serves the site. FROM nginx:alpine -COPY . /usr/share/nginx/html +COPY --from=fetch /site /usr/share/nginx/html EXPOSE 80