| FROM python:3.9 | |
| RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \ | |
| git clone --single-branch --branch main $(cat /run/secrets/GIT_REPO) | |
| WORKDIR /LetterGen | |
| RUN pip install --no-cache-dir --upgrade -q -r requirements.txt | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |