reverse-streamlit / Dockerfile
loocorez's picture
Update Dockerfile
072aa99 verified
raw
history blame contribute delete
571 Bytes
# ---- base image: must be >=3.11 for verifiers ------------------------------
FROM python:3.11-slim
ENV PIP_NO_CACHE_DIR=1
WORKDIR /app
# system deps
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential git curl && \
rm -rf /var/lib/apt/lists/*
# fast dependency manager that you like
RUN pip install uv
# deps
COPY requirements.txt .
RUN uv pip install --system -r requirements.txt
# app
COPY src/ ./src/
EXPOSE 7860
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]