Spaces:
Sleeping
Sleeping
Download Dockerfile from adarsh-007/Cards_Classification: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/adarsh-007/Cards_Classification/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/adarsh-007/Cards_Classification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/adarsh-007/Cards_Classification/resolve/main/Dockerfile
464 Bytes
| FROM python:3.12.3 | |
| WORKDIR /app | |
| COPY ./requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user cards_classification.pkl $HOME/app/cards_classification.pkl | |
| COPY --chown=user app.py $HOME/app/app.py | |
| COPY --chown=user test_images $HOME/app/test_images | |
| CMD ["python", "app.py"] |