Download model/Dockerfile from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/model/Dockerfile
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN/model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/model/Dockerfile
362 Bytes
| FROM python:3.8.13 AS base | |
| ENV PYTHONPATH=$PYTHONPATH:/src/ | |
| ADD requirements.txt . | |
| RUN pip3 install -r requirements.txt | |
| ENV PYTHONPATH=$PYTHONPATH:/src/ | |
| # ๐ Uncomment for DEPLOY / Comment for DevContainers | |
| COPY ./ /src/ | |
| WORKDIR /src | |
| FROM base AS test | |
| RUN ["pytest", "-v", "/src/tests"] | |
| FROM base AS build | |
| ENTRYPOINT ["python3", "/src/ml_service.py"] | |