prediction_ai / Dockerfile
reub1's picture
Update Dockerfile
93ee84c verified
raw
history blame contribute delete
360 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860
ENV MODEL_REPO_ID="reub1/teacher_ai"
ENV MODEL_FILENAME="model (2).joblib"
ENV HF_HOME=/tmp/.cache/huggingface
ENV HF_HUB_CACHE=/tmp/.cache/huggingface
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]