Dockerfile.api
388 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir pysqlite3-binary
COPY . .
RUN mkdir -p data logs
ENV PYTHONPATH=/app
EXPOSE 8000
CMD ["python", "bin/run_api.py", "--server"]