Benoit Chesneau af8897a14c Add pytest and requests to embedding_service Dockerfile
Include test dependencies in Docker image for testing.
2026-03-23 13:37:02 +01:00

24 lines
451 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir \
sentence-transformers \
fastapi \
pydantic \
pytest \
requests
# Copy gunicorn source
COPY . /app/gunicorn-src
RUN pip install /app/gunicorn-src
# Copy app
COPY examples/embedding_service /app/embedding_service
ENV PYTHONPATH=/app
EXPOSE 8000
CMD ["gunicorn", "embedding_service.main:app", "-c", "embedding_service/gunicorn_conf.py"]