cv_parser / Dockerfile
QuentinL52's picture
Update Dockerfile
a718039 verified
raw
history blame
595 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PYTHONPATH=/app
ENV HF_HOME=/tmp/cache \
HF_HUB_CACHE=/tmp/cache/hub \
WORKDIR /app
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /tmp/cache/hub \
/app/.local/share && \
chmod -R 777 /tmp /app/.local
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]