FROM mcr.microsoft.com/playwright/python:v1.46.0-jammy WORKDIR /code RUN chmod 777 /code RUN pip install httpx flask[async] playwright > /dev/null 2>&1 RUN mkdir -p /.cache && chmod 777 /.cache RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \ --mount=type=secret,id=APP_URL,mode=0444,required=true \ curl -v -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL) COPY . . CMD ["python", "/code/app.py"]