PDF-QA-Generator / Dockerfile
HamidOmarov's picture
Make Space self-contained: no LLM deps; proper Docker; README frontmatter
7740cb7
Raw
History Blame Contribute Delete
339 Bytes
# Dockerfile
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PORT=7860
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]