FROM python:3.10.9-slim COPY . /semantic_search WORKDIR /semantic_search RUN pip install --no-cache-dir --upgrade -r ./requirements.txt ENV BASE_DIR=/semantic_search ENV MEDIA=media ENV PINECONE_API_KEY=pinecone_api_key ENV TRANSFORMERS_CACHE=/tmp/.cache RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache RUN chmod -R 777 /semantic_search/media CMD [ "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]