text-embedding-api / Dockerfile
ashish-001's picture
Upload Dockerfile
df50825 verified
raw
history blame contribute delete
333 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir -r requirements.txt uvicorn
ENV HF_HOME=/home/user/cache
ENV TORCH_HOME=/home/user/cache
RUN mkdir -p /home/user/cache && chmod -R 777 /home/user/cache
COPY . .
EXPOSE 7860
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]