video-generate / Dockerfile
tstech1's picture
Update Dockerfile
f5c07ee verified
raw
history blame contribute delete
559 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install required system dependencies for DNS + SSL
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
netbase \
dnsutils \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
# Print network debug info at startup (optional)
CMD echo "๐ŸŒ Checking DNS..." && ping -c 2 huggingface.co || true && \
uvicorn app:app --host 0.0.0.0 --port 7860 --log-level info