| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:3f78aa860931e0853077f09eb31eddbeeef8a9dd70977305b4876aa176770721 in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV DISPLAY=:99 |
| RUN /bin/sh -c apt-get update && apt-get install -y wget curl unzip xvfb libgtk-3-0 libnss3 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libgbm1 libasound2t64 libxdamage1 libxfixes3 libxkbcommon0 libpango-1.0-0 libcairo2 fonts-liberation fonts-noto-color-emoji && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && apt-get update && apt-get install -y ./google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y python3 python3-venv python3-pip # buildkit |
| RUN /bin/sh -c python3 -m venv /venv # buildkit |
| ENV PATH=/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c pip install --upgrade pip # buildkit |
| RUN /bin/sh -c pip install seleniumbase pika fastapi uvicorn bs4 # buildkit |
| RUN /bin/sh -c seleniumbase get chromedriver # buildkit |
| WORKDIR /app |
| COPY scraper_api.py /app/scraper_api.py # buildkit |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| EXPOSE map[8000/tcp:{}] |
| ENTRYPOINT ["/entrypoint.sh"] |