Dockerfile: multi-stage build that fetches the site from Gitea
This commit is contained in:
+7
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user