File size: 700 Bytes
c293f7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Simple Dockerfile for testing
FROM python:3.14.2-slim

# Set working directory
WORKDIR /app

# Copy requirements
COPY requirements.txt .

# Install basic dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY backend/ ./backend/
COPY frontend/ ./frontend/
COPY map/ ./map/
COPY data/ ./data/

# Set environment variables
ENV PYTHONPATH=/app/backend
ENV PORT=8080

# Expose port
EXPOSE 8080

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
    CMD curl -f http://localhost:${PORT}/health || exit 1

# Run application
CMD ["python", "-m", "uvicorn", "backend.main_application:app", "--host", "0.0.0.0", "--port", "8080"]