| | |
| | FROM python:3.13.5-slim |
| |
|
| | ENV PIP_NO_CACHE_DIR=1 \ |
| | PYTHONDONTWRITEBYTECODE=1 \ |
| | PYTHONUNBUFFERED=1 |
| |
|
| | WORKDIR /app |
| |
|
| | |
| | RUN apt-get update && apt-get install -y --no-install-recommends \ |
| | build-essential \ |
| | curl \ |
| | git \ |
| | && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | COPY requirements.txt . |
| | RUN pip3 install --no-cache-dir -r requirements.txt |
| | |
| |
|
| | |
| | COPY src/ ./src/ |
| |
|
| | |
| | RUN useradd -m appuser && chown -R appuser:appuser /app |
| | USER appuser |
| |
|
| | EXPOSE 8501 |
| |
|
| | HEALTHCHECK CMD curl --fail --silent --show-error http://localhost:8501/_stcore/health || exit 1 |
| |
|
| | |
| | CMD ["python", "-m", "streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |
| |
|
| |
|