FROM python:3.10-slim WORKDIR /app ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 # Create non-root user RUN useradd -m -u 1000 appuser # Install only Streamlit dependencies RUN pip install --no-cache-dir \ streamlit>=1.28.0 \ requests>=2.31.0 \ pandas>=2.0.0 # Copy only the Streamlit app COPY --chown=appuser:appuser hopcroft_skill_classification_tool_competition/streamlit_app.py ./ EXPOSE 8501 USER appuser # Set API URL to point to the API service ENV API_BASE_URL=http://hopcroft-api:8080 CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]