From 3dbbe11dfa66ac4d297e64cd0c43e22670175a68 Mon Sep 17 00:00:00 2001 From: Urvish Date: Fri, 9 Oct 2026 14:07:18 +0530 Subject: [PATCH] feat(docker): add production docker setup and container git metadata tracking - Copy .git_store_info into container to identify running branch and commit - Ignore generated .git_*_info in .gitignore - Add production multi-stage Dockerfile and Nginx reverse proxy configuration --- .gitignore | 4 ++++ Dockerfile | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index de28197..4a3223f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ dist-ssr .env .env.* !.env.example + +# Generated Git Info +.git_*_info + diff --git a/Dockerfile b/Dockerfile index e61f333..32918a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,9 @@ RUN rm /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/dist /usr/share/nginx/html +# Copy git info metadata if generated on host +COPY .git_store_info* /app/.git_store_info + RUN ln -sf /usr/share/nginx/html /usr/share/nginx/html/store EXPOSE 80