Dockerfile: multi-stage build that fetches the site from Gitea

This commit is contained in:
2026-12-06 06:30:39 +06:00
parent 98fac2d03d
commit 4235000b50
+7 -2
View File
@@ -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