Add Docker, Woodpecker CI/CD, and dev proxy setup
ci/woodpecker/manual/woodpecker Pipeline was successful

- Add multi-stage Dockerfile (Vite build → Nginx serve)
- Add nginx.conf: serves SPA, proxies /api/ to yugioh-api:3000
- Add .woodpecker.yml pipeline (build + deploy on yugioh network, port 8041)
- Add .dockerignore
- Add .env.example with VITE_API_URL
- Update .gitignore to exclude .env files
- Update vite.config.js: proxy /api to backend in dev via VITE_API_URL
- Fix git remote push URLs (were pointing at Dashboard repo)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 20:48:45 +02:00
parent a11793ebfd
commit ebf83aa503
7 changed files with 83 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]