evaluate-asr-outputs / Dockerfile
Yehor's picture
Update Dockerfile
7b80724 verified
raw
history blame
1.2 kB
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
git \
git-lfs \
wget \
curl \
ca-certificates \
# python build dependencies \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev \
# gradio dependencies \
ffmpeg \
# uv \
curl -LsSf https://astral.sh/uv/install.sh | sh \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1001 hf-space
USER hf-space
ENV HOME=/home/hf-space \
PATH=/home/hf-space/.local/bin:${PATH}
COPY --chown=1001 . ${HOME}/app
WORKDIR ${HOME}/app
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN uv pip install --no-cache-dir -r /tmp/requirements.txt
ENV PYTHONPATH=${HOME}/app \
PYTHONUNBUFFERED=1 \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_THEME=huggingface \
SYSTEM=spaces
CMD ["/home/hf-space/app/.venv/bin/python", "app.py"]