Download Dockerfile from morpheuslord/rewrite: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/morpheuslord/rewrite/resolve/main/Dockerfile
- Command line
-
hf download hf://morpheuslord/rewrite/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/morpheuslord/rewrite/resolve/main/Dockerfile
686 Bytes
| FROM python:3.10-slim | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| curl \ | |
| default-jre \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Download spaCy model | |
| RUN python -m spacy download en_core_web_trf | |
| # Download NLTK data | |
| RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger'); nltk.download('wordnet')" | |
| # Copy application | |
| COPY . . | |
| # Expose API port | |
| EXPOSE 8000 | |
| # Default: run the API server | |
| CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8000"] | |