Spaces:
Sleeping
Sleeping
File size: 688 Bytes
60531e4 977d066 60531e4 db406df 977d066 60531e4 db406df 60531e4 db406df 60531e4 db406df 60531e4 db406df 977d066 60531e4 977d066 60531e4 |
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 |
# ---- Base Python ----
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# ---- System deps ----
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# ---- Python deps ----
COPY requirements.txt .
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# ---- App code ----
COPY . .
# ---- Streamlit run ----
ENV PORT=7860
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:${PORT}/_stcore/health || exit 1
ENTRYPOINT ["sh", "-c", "streamlit run main.py --server.address=0.0.0.0 --server.port=${PORT}"]
|