LLM-Llm / Dockerfile
senku21230's picture
Update Dockerfile
baaad15 verified
raw
history blame contribute delete
467 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN mkdir -p /app/models
RUN apt-get update && apt-get install -y gcc g++ cmake make \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# RAM বাঁচাতে single thread-এ compile
RUN CMAKE_BUILD_PARALLEL_LEVEL=1 MAKEFLAGS="-j1" \
pip install --no-cache-dir -r requirements.txt
COPY app.py .
ENV HF_HUB_ENABLE_HF_TRANSFER=1
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]