feat: SPA routing, projects/resume sections, deployment infra
Some checks failed
Build & Deploy / build (push) Failing after 35s
Build & Deploy / deploy (push) Has been skipped

- Add client-side router with History API pushState (router.ts, pages.ts)
- Extend overlay with projects grid/category/detail views and resume section
- Add Gitea CI/CD workflow and webhook deployment server
- Improve Docker Compose with nginx reverse proxy config
- Add deployment script and .env.example
This commit is contained in:
djoser
2026-07-26 23:48:15 +00:00
parent d8187860d8
commit 9c99027ea6
19 changed files with 787 additions and 61 deletions

View File

@@ -9,14 +9,26 @@ RUN npm ci
# Copy source and build
COPY tsconfig.json vite.config.ts index.html ./
COPY src/ src/
# Run tests first — gates the build
RUN npm test
RUN npm run build
# ---- stage 2: serve ----
FROM nginx:alpine-slim AS serve
# curl needed for the healthcheck in docker-compose
RUN apk add --no-cache curl
COPY --from=build /app/dist /usr/share/nginx/html
# Optional: custom nginx config for caching / security
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
# Wipe any default server blocks that could conflict with our config.
RUN rm -f /etc/nginx/conf.d/default.conf
EXPOSE 80
# Deploy our custom nginx config and validate it at build time
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
RUN nginx -t
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]