PiXerseLP_UI_Test / Dockerfile
ManTea's picture
First
977d066
raw
history blame contribute delete
688 Bytes
# ---- 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}"]