Files
clawrity/Dockerfile
T
2026-05-04 22:00:38 +05:30

24 lines
506 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system dependencies for psycopg2 and Prophet
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# Create necessary directories
RUN mkdir -p data/raw data/processed logs
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]