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