molecularmax's picture
Fix ONNX runtime executable stack issue for HF Spaces
2725c8b
raw
history blame contribute delete
259 Bytes
FROM python:3.10
WORKDIR /code
ENV HF_HOME=/tmp
ENV TRANSFORMERS_CACHE=/tmp
ENV INSIGHTFACE_HOME=/tmp
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
CMD ["python", "app.py"]