medimind-api / Dockerfile
Manikantaperla's picture
add startup script
2b78076
raw
history blame contribute delete
458 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
RUN mkdir -p /app/data /app/artifacts
ENV HF_HOME=/app/hf_cache
ENV TRANSFORMERS_CACHE=/app/hf_cache
ENV PYTHONUNBUFFERED=1
EXPOSE 7860
CMD ["sh", "-c", "python startup.py && python -m uvicorn main:app --host 0.0.0.0 --port 7860"]