Spaces:
Runtime error
Runtime error
Download Dockerfile from varshakolanu/Subcontractor_Scoring: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/spaces/varshakolanu/Subcontractor_Scoring/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/varshakolanu/Subcontractor_Scoring/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/varshakolanu/Subcontractor_Scoring/resolve/main/Dockerfile
786 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim-buster | |
| # Set the working directory in the container to /app | |
| WORKDIR /app | |
| # Copy the requirements file to 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 | |
| # Set both TRANSFORMERS_CACHE and HF_HOME | |
| ENV TRANSFORMERS_CACHE=/tmp | |
| ENV HF_HOME=/tmp | |
| # Copy the application code to the container at /app | |
| COPY . /app | |
| # Make port 8080 available to the world outside this container | |
| EXPOSE 8080 | |
| # Run app.py when the container launches | |
| CMD ["python", "app.py"] | |