gopfood-embedding / Dockerfile
phuc0201's picture
Update Dockerfile
f9a0be3 verified
raw
history blame
383 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN apt-get update && apt-get install -y \
git build-essential \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& apt-get clean
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
RUN mkdir -p /tmp/hf_cache
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]