Download Dockerfile from ToastFlix/TR-TEST: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/ToastFlix/TR-TEST/resolve/e373394de5bcdfcb08acdd32041fbba829cf5413/Dockerfile
- Command line
-
hf download hf://spaces/ToastFlix/TR-TEST@e373394de5bcdfcb08acdd32041fbba829cf5413/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ToastFlix/TR-TEST/resolve/e373394de5bcdfcb08acdd32041fbba829cf5413/Dockerfile
623 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.10-slim-buster | |
| # Set the working directory in the container to /app | |
| WORKDIR /app | |
| # Install git | |
| RUN apt-get update && apt-get install -y git | |
| RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \ | |
| git clone -b test https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/DiogoMiguel93/Toast-Ratings.git /app || true | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| #EXPOSE the port | |
| EXPOSE 8080 | |
| CMD ["uvicorn", "balancer:app", "--host", "0.0.0.0", "--port", "8080", "--workers", "2"] |