SHODAN / Dockerfile
jisaacso219's picture
Update Dockerfile
17db5d7 verified
raw
history blame
417 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
git ffmpeg libsndfile1 \
&& apt-get clean
WORKDIR /app
COPY . /app
RUN pip install --upgrade pip
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
# Set numba cache location to avoid HF Spaces crash
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_CACHE=1
EXPOSE 7860
CMD ["python", "app.py"]