Download Dockerfile from Ayush-003/AtsParser: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/Ayush-003/AtsParser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ayush-003/AtsParser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ayush-003/AtsParser/resolve/main/Dockerfile
1.04 kB
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file into the container at /app | |
| COPY ./requirements.txt /app/ | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application's code into the container | |
| COPY ./app.py /app/ | |
| COPY ./ats_pipeline /app/ats_pipeline | |
| # Download the model during the build process for faster startup | |
| # This prevents the model from being downloaded on the first API request. | |
| RUN python -c "from ats_pipeline.retrieval.embed import EmbeddingService; EmbeddingService()" | |
| # Make port 8000 available to the world outside this container | |
| EXPOSE 7860 | |
| # Define environment variable for data root if needed (can be overridden) | |
| ENV ATS_DATA_ROOT=/data | |
| # Run app.py when the container launches | |
| # Use --host 0.0.0.0 to make it accessible from outside the container | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |