Download Dockerfile from jalesummak/Traffic-Sign-Classifier-German: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/spaces/jalesummak/Traffic-Sign-Classifier-German/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jalesummak/Traffic-Sign-Classifier-German/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jalesummak/Traffic-Sign-Classifier-German/resolve/main/Dockerfile
514 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY traffic_sign.h5 labels.pkl satellite_image_tf.keras ./ | |
| COPY src/streamlit_app.py ./src/streamlit_app.py | |
| EXPOSE 8501 | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |