CoolFace
Apppublic

imageomics/drexel_metadata_app

sourceHugging Facemitupdated 9mo agoView on Hugging Face
2likes
Dockerfile29 linesDownload Raw Back to root
1FROM python:3.92 3# Add settings taken from huggingface default container.4RUN useradd -m -u 1000 user5RUN apt-get update && apt-get install -y \6    git git-lfs ffmpeg 	libsm6 	libxext6 \7    cmake libgl1-mesa-glx \8    && rm -rf /var/lib/apt/lists/* \9    && git lfs install10 11# Use older setuptools to avoid 2to3 error with dependencies.12RUN pip install 'setuptools<58'13 14# Install drexel_metadata dependencies15COPY requirements.txt /tmp/requirements.txt16RUN pip install -r /tmp/requirements.txt17 18# Install gradio after main dependencies to prevent19# `cannot import name 'deprecated' from 'typing_extensions'` error.20RUN pip install gradio21 22USER user23WORKDIR /home/user/app24# Cache matplotlib fonts to improve startup time.25RUN mkdir /home/user/.cache && python -c "import matplotlib.pyplot"26 27COPY --chown=user . /home/user/app28CMD python app.py29