Download api/Dockerfile.populate from iBrokeTheCode/Image_Classifier_with_CNN: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/Dockerfile.populate
- Command line
-
hf download hf://spaces/iBrokeTheCode/Image_Classifier_with_CNN@3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/Dockerfile.populate
-
curl -L -o Dockerfile.populate https://huggingface.co/spaces/iBrokeTheCode/Image_Classifier_with_CNN/resolve/3ce4bfcd092cc1d5f518baf6ca367ffa336d7d75/api/Dockerfile.populate
401 Bytes
| FROM python:3.8.13 | |
| # 1. Copy the requirements.txt file to the image | |
| ENV PYTHONPATH=$PYTHONPATH:/src/ | |
| COPY ./requirements.txt /src/requirements.txt | |
| WORKDIR /src | |
| # 2. Install the dependencies | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # 3. Copy the content of the current directory to the image | |
| COPY ./ /src/ | |
| # 4. Run the populate_db.py script | |
| CMD ["python", "populate_db.py"] |