Spaces:
Running
Running
File size: 559 Bytes
622abc0 f5c07ee 56bcb43 f5c07ee 56bcb43 622abc0 56bcb43 622abc0 f5c07ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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
|