multimodal_module / Dockerfile
Princeaka's picture
Create Dockerfile
1f2d820 verified
raw
history blame
888 Bytes
FROM python:3.10-bullseye
# Prevent interactive prompts during install
ENV DEBIAN_FRONTEND=noninteractive
# --- System dependencies ---
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1 \
libglib2.0-0 \
libsndfile1 \
libsm6 \
libxext6 \
libxrender1 \
git \
git-lfs \
cmake \
rsync \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
# --- Copy requirements and install Python dependencies ---
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r /app/requirements.txt
# --- Copy app code ---
WORKDIR /app
COPY . /app
# --- Environment variables ---
ENV HF_HUB_DISABLE_TELEMETRY=1 \
HF_HUB_ENABLE_HF_TRANSFER=1 \
TOKENIZERS_PARALLELISM=false
# --- Expose port for Gradio ---
EXPOSE 7860
# --- Run Gradio app ---
CMD ["python", "app.py"]