29 lines
703 B
Docker
29 lines
703 B
Docker
|
|
# QUIXZOOM API Server Dockerfile
|
||
|
|
FROM node:20-alpine
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# Install dependencies
|
||
|
|
COPY package.json ./
|
||
|
|
RUN npm install --production
|
||
|
|
|
||
|
|
# Copy application code
|
||
|
|
COPY api/ ./api/
|
||
|
|
COPY app/ ./app/
|
||
|
|
COPY urban-knowledge-graph/ ./urban-knowledge-graph/
|
||
|
|
COPY identity-engine/ ./identity-engine/
|
||
|
|
COPY fleet-intelligence/ ./fleet-intelligence/
|
||
|
|
COPY value-score/ ./value-score/
|
||
|
|
COPY persistence/ ./persistence/
|
||
|
|
COPY websocket/ ./websocket/
|
||
|
|
COPY workers/ ./workers/
|
||
|
|
|
||
|
|
# Expose port
|
||
|
|
EXPOSE 3000
|
||
|
|
|
||
|
|
# Health check
|
||
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
|
||
|
|
|
||
|
|
# Start server
|
||
|
|
CMD ["node", "api/server.js"]
|