Symentic_search / Dockerfile
shoaibrza9999's picture
Create Dockerfile
4050d57 verified
raw
history blame contribute delete
362 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Create a writable cache directory for Transformers
RUN mkdir -p /code/cache
ENV TRANSFORMERS_CACHE=/code/cache
RUN chmod -R 777 /code/cache
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]