Spaces:
Running
Running
Download Dockerfile from bartar/tokenizers: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/spaces/bartar/tokenizers/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bartar/tokenizers/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bartar/tokenizers/resolve/main/Dockerfile
475 Bytes
| FROM python:3.11-slim | |
| # Set the working directory to the root | |
| WORKDIR / | |
| # Copy application files to the root | |
| COPY . / | |
| # Install dependencies | |
| RUN pip install --no-cache-dir flask transformers | |
| # Set Hugging Face cache directory | |
| ENV HF_HOME="/tmp/huggingface" | |
| # Create the cache directory and set permissions | |
| RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface | |
| # Expose the port for the app | |
| EXPOSE 7860 | |
| # Command to run app.py directly | |
| CMD ["python", "app.py"] |