lsb-antispam / Dockerfile
ventuero
drop workers
98e0ff2
raw
history blame contribute delete
554 Bytes
FROM ghcr.io/astral-sh/uv:python3.13-bookworm
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends git g++ make && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PYTHONPATH=src
ENV UV_CACHE_DIR=/tmp/.cache/uv
COPY pyproject.toml .
COPY uv.lock .
RUN uv sync --frozen --no-cache
COPY . .
ENV HF_HOME=/tmp/huggingface-cache
ENV TOKENIZERS_PARALLELISM=false
EXPOSE 7860
CMD ["uv", "run", "granian", "--interface", "asgi", "--workers", "2", "--host", "0.0.0.0", "--port", "7860", "antispam_api.main:app"]