Black Goku commited on
Create Dockerfile
Browse files1234567891011121314151617181920212223242526272829FROM python:3.10-slim
RUN apt-get update && apt-get install -y \ build-essential \ cmake \ curl \ git \ && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
ENV CMAKE_ARGS="-DGGML_BLAS=OFF -DGGML_CUDA=OFF"ENV FORCE_CMAKE=1
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HOST=0.0.0.0ENV PORT=7860ENV HF_HOME=/app/hf_cacheENV MODEL_DIR=/app/modelsRUN mkdir -p $HF_HOME $MODEL_DIR && chmod -R 777 /app
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+29