topic-analysis / backend /Dockerfile
alexchilton
Initial deployment: Sentiment & Topic Analysis Dashboard
6242ddb
raw
history blame contribute delete
552 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p uploads model_cache data
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python -c "import httpx; r = httpx.get('http://localhost:8000/health/live'); r.raise_for_status()"
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]