File size: 812 Bytes
75d8194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b4b9b2e
 
75d8194
 
 
 
 
 
b4b9b2e
75d8194
 
 
 
 
b4b9b2e
 
 
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
32
33
34
35
36
FROM python:3.11-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && \
    apt-get install -y --no-install-recommends curl git && \
    rm -rf /var/lib/apt/lists/*

# Copy everything from root into /app
COPY . /app

# Install Python dependencies
RUN pip install --no-cache-dir \
    openenv-core \
    fastapi \
    "uvicorn[standard]" \
    pydantic \
    websockets \
    openai \
    python-dotenv

# Set PYTHONPATH so all imports resolve correctly
ENV PYTHONPATH="/app:/app/server"
ENV TASK_NAME=note_categorization
ENV PORT=8000

EXPOSE 8000 8001 8002 8003

# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
    CMD curl -f http://localhost:8000/health || exit 1

# Make start script executable & run
RUN chmod +x /app/start.sh
CMD ["/app/start.sh"]