14a32bdc0d
- Unified monorepo with backend (Express), frontend (Next.js), and devops - Backend: ESLint, Prettier, Jest tests (3 passing), health endpoint, .env.example - Frontend: Fixed build errors, fixed all lint errors (0 remaining), tests passing - DevOps: Docker Compose with PostgreSQL, backend, frontend + healthchecks - CI/CD: 3 GitHub Actions workflows (backend, frontend, docker integration) - DX: Husky pre-commit hooks with smart change detection - Docs: Root README with architecture, CONTRIBUTING.md, PR template Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
557 B
Docker
22 lines
557 B
Docker
FROM node:20-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install
|
|
|
|
# Install Chromium for Lighthouse
|
|
RUN apt-get update && \
|
|
apt-get install -y wget ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils chromium && \
|
|
ln -s /usr/bin/chromium /usr/bin/chromium-browser
|
|
|
|
COPY . .
|
|
|
|
RUN npm install -g typescript
|
|
|
|
RUN tsc
|
|
|
|
EXPOSE 5001
|
|
|
|
CMD ["node", "dist/express-worker.js"]
|