Download docker/Dockerfile.streamlit from DaCrow13/Hopcroft-Skill-Classification: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/spaces/DaCrow13/Hopcroft-Skill-Classification/resolve/main/docker/Dockerfile.streamlit
- Command line
-
hf download hf://spaces/DaCrow13/Hopcroft-Skill-Classification/docker/Dockerfile.streamlit
-
curl -L -o Dockerfile.streamlit https://huggingface.co/spaces/DaCrow13/Hopcroft-Skill-Classification/resolve/main/docker/Dockerfile.streamlit
682 Bytes
| 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"] | |