FROM python:3.8.12-slim WORKDIR /code RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y git RUN --mount=type=secret,id=AutoCrawlerRepo,mode=0444,required=true \ git clone $(cat /run/secrets/AutoCrawlerRepo) WORKDIR /code/autocrawler/ RUN pip install --no-cache-dir --upgrade -r /code/autocrawler/requirements.txt CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]