Fristtry01 / Dockerfile
proti0070's picture
Update Dockerfile
dad6fc8 verified
raw
history blame contribute delete
761 Bytes
FROM python:3.10-slim
WORKDIR /app
# সিস্টেম ডিপেন্ডেন্সি
RUN apt-get update && apt-get install -y \
gcc \
g++ \
curl \
&& rm -rf /var/lib/apt/lists/*
# Python প্যাকেজ
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# অ্যাপ কপি
COPY app.py .
# Environment
ENV MODEL_NAME=Qwen/Qwen3-0.6B
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
EXPOSE $PORT
# Hugging Face ক্যাশের জন্য ভলিউম
VOLUME ["/root/.cache/huggingface"]
# হেলথচেক
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
CMD curl -f http://localhost:$PORT/health || exit 1
CMD uvicorn app:app --host 0.0.0.0 --port $PORT