- Express backend with PostgreSQL (JWT auth, full CRUD) - React + Vite + TailwindCSS frontend in Hebrew (RTL) - Features: Digital Booking System, Guest Management, Smart Budget Management - Docker Compose with postgres healthcheck - Auto-runs migrations on startup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
402 B
Docker
22 lines
402 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install backend deps
|
|
COPY package*.json ./
|
|
RUN npm install --production
|
|
|
|
# Build frontend
|
|
COPY client/package*.json ./client/
|
|
RUN cd client && npm install
|
|
|
|
COPY client/ ./client/
|
|
RUN cd client && npm run build
|
|
|
|
# Copy backend source
|
|
COPY server.js db.js migrate.js ./
|
|
COPY routes/ ./routes/
|
|
|
|
# Run migrations then start server
|
|
CMD node migrate.js && node server.js
|