LipNet-Pytorch / Dockerfile
FarhanAK128's picture
Update Dockerfile
490903c verified
raw
history blame contribute delete
867 Bytes
FROM python:3.13.5-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
libgl1-mesa-glx \
libglib2.0-0 \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
# Disable Streamlit telemetry
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Copy project files (frontend.py and others) into container
COPY pyproject.toml ./
COPY frontend.py ./
COPY model_utils/ ./model_utils/
COPY data/ ./data/
# Install Python dependencies
RUN pip3 install .
# Expose Streamlit's default port
EXPOSE 8501
# Healthcheck for container monitoring
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Start the Streamlit app
ENTRYPOINT ["streamlit", "run", "frontend.py", "--server.port=8501", "--server.address=0.0.0.0"]