Spaces:
Runtime error
Runtime error
Download Dockerfile from navid72m/pdfexplorer: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/navid72m/pdfexplorer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/navid72m/pdfexplorer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/navid72m/pdfexplorer/resolve/main/Dockerfile
568 Bytes
| FROM --platform=linux/amd64 tensorflow/tensorflow:latest | |
| WORKDIR /usr/local/bin | |
| COPY selection.py . | |
| COPY requirements.txt . | |
| COPY --chown=user:user train.json . | |
| RUN pip install kaggle | |
| COPY kaggle.json /.kaggle/ | |
| RUN chmod 777 /.kaggle/kaggle.json | |
| # Set up cache directories with appropriate permissions | |
| RUN mkdir -p /.cache && chmod -R 777 /.cache | |
| # Change ownership of working directory (if necessary) | |
| RUN chown -R root:root /usr/local/bin | |
| RUN pip install transformers | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "./selection.py","--port", "7860"] |