Teacher-AI / Dockerfile
Moaaz2os's picture
Upload Dockerfile
3f46fb5 verified
Raw
History Blame Contribute Delete
440 Bytes
FROM python:3.11-slim
WORKDIR /code
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
libgl1 \
libglx-mesa0 \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
ENV PYTHONPATH=/code/app
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]