mcq-generator / Dockerfile
namberino
Update Dockerfile
744e1a0
raw
history blame contribute delete
541 Bytes
FROM python:3.11-slim
ENV HF_HOME=/tmp/huggingface
ENV TOKENIZERS_PARALLELISM=false
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
wget \
libsndfile1 \
libgl1 \
libglib2.0-0 \
poppler-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY src /app
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]