agroscan-api / Dockerfile
tahmidalbi's picture
Add AgroScan FastAPI Docker backend
0e592ad
Raw
History Blame Contribute Delete
274 Bytes
FROM python:3.10-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1
ENV MODEL_CACHE_DIR=/app/model_cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]