Download api/Dockerfile from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/Dockerfile
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/main/api/Dockerfile
430 Bytes
| FROM python:3.8.13 AS base | |
| ENV PYTHONPATH=$PYTHONPATH:/src/ | |
| COPY ./requirements.txt /src/requirements.txt | |
| WORKDIR /src | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # ๐ Uncomment for DEPLOY / Comment for DevContainers | |
| COPY ./ /src/ | |
| FROM base AS test | |
| RUN ["python", "-m", "pytest", "-v", "/src/tests"] | |
| FROM base AS build | |
| CMD gunicorn -w 4 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:5000 main:app |