| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:8c609c85109d07bf47cf268a175b3be8bbe34fc0c41d15d99b090d099f4dc837 in / |
| CMD ["/bin/bash"] |
| ARG DEBIAN_FRONTEND=noninteractive |
| ARG TZ=America/Los_Angeles |
| ARG DOCKER_IMAGE_NAME_TEMPLATE=mcr.microsoft.com/playwright/python:v%version%-noble |
| ENV LANG=C.UTF-8 |
| ENV LC_ALL=C.UTF-8 |
| RUN |3 DEBIAN_FRONTEND=noninteractive TZ=America/Los_Angeles DOCKER_IMAGE_NAME_TEMPLATE=mcr.microsoft.com/playwright/python:v%version%-noble /bin/sh -c apt-get update && apt-get install -y python3 curl && rm /usr/lib/python3.12/EXTERNALLY-MANAGED && update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py && apt-get install -y --no-install-recommends git openssh-client gpg && rm -rf /var/lib/apt/lists/* && adduser pwuser # buildkit |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright |
| COPY ./dist/*-manylinux*.whl /tmp/ # buildkit |
| RUN |3 DEBIAN_FRONTEND=noninteractive TZ=America/Los_Angeles DOCKER_IMAGE_NAME_TEMPLATE=mcr.microsoft.com/playwright/python:v%version%-noble /bin/sh -c mkdir /ms-playwright && mkdir /ms-playwright-agent && cd /ms-playwright-agent && pip install virtualenv && virtualenv venv && . venv/bin/activate && if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && playwright install --with-deps && rm -rf /var/lib/apt/lists/* && rm /tmp/*.whl && rm -rf /ms-playwright-agent && chmod -R 777 /ms-playwright # buildkit |
| WORKDIR /app |
| COPY web-automation/requirements.txt . # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir -r requirements.txt # buildkit |
| COPY app/secrets_store.py . # buildkit |
| COPY vendored/web_automation_runner.py ./runner.py # buildkit |
| COPY vendored/web_automation_credentials.py ./credentials.py # buildkit |
| COPY web-automation/app.py . # buildkit |
| EXPOSE [8090/tcp] |
| CMD ["python3" "-m" "uvicorn" "app:app" "--host" "0.0.0.0" "--port" "8090"] |