Spaces:
Sleeping
Sleeping
File size: 636 Bytes
8fd491f 00972f9 92b6f97 84e536c 3e8f6fd 00972f9 84e536c 00972f9 08fbfed 84e536c 92b6f97 84e536c 00972f9 84e536c 00972f9 84e536c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# === Base Image ===
FROM python:3.10-slim
# === Set working directory ===
WORKDIR /app
# === Install system dependencies ===
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# === Copy dependency list and install ===
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && \
rm -rf /root/.cache/pip
# === Copy application files ===
COPY . .
# === Make entrypoint executable ===
RUN chmod +x entrypoint.sh
# === Expose app port ===
EXPOSE 7860
# === Use custom entrypoint ===
ENTRYPOINT ["./entrypoint.sh"]
|