| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:9303cc1f788d2a9a8f909b154339f7c637b2a53c75c0e7f3da62eb1fefe371b1 in / |
| CMD ["/bin/bash"] |
| ENV PYTHONUNBUFFERED=1 |
| ENV PYTHONIOENCODING=UTF-8 |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y --no-install-recommends tzdata locales # buildkit |
| RUN /bin/sh -c sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen # buildkit |
| ENV TZ=America/New_York |
| RUN /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit |
| ENV LANG=en_US.UTF-8 |
| ENV LANGUAGE=en_US:en |
| ENV LC_ALL=en_US.UTF-8 |
| RUN /bin/sh -c echo "LC_ALL=en_US.UTF-8" >> /etc/environment # buildkit |
| RUN /bin/sh -c echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen # buildkit |
| RUN /bin/sh -c echo "LANG=en_US.UTF-8" > /etc/locale.conf # buildkit |
| RUN /bin/sh -c locale-gen en_US.UTF-8 # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y fonts-liberation fonts-liberation2 fonts-font-awesome fonts-ubuntu fonts-terminus fonts-powerline fonts-open-sans fonts-mononoki fonts-roboto fonts-lato # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libgtk-3-0 libnspr4 libnss3 libu2f-udev libvulkan1 libwayland-client0 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y xdg-utils ca-certificates # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get -qy --no-install-recommends install curl sudo unzip vim wget xvfb # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb # buildkit |
| RUN /bin/sh -c apt-get install -y ./google-chrome-stable_current_amd64.deb # buildkit |
| RUN /bin/sh -c rm ./google-chrome-stable_current_amd64.deb # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y python3 python3-pip python3-setuptools python3-dev python3-tk # buildkit |
| RUN /bin/sh -c alias python=python3 # buildkit |
| RUN /bin/sh -c echo "alias python=python3" >> ~/.bashrc # buildkit |
| RUN /bin/sh -c apt-get -qy --no-install-recommends install python3.10 # buildkit |
| RUN /bin/sh -c rm /usr/bin/python3 # buildkit |
| RUN /bin/sh -c ln -s python3.10 /usr/bin/python3 # buildkit |
| RUN /bin/sh -c apt-get clean # buildkit |
| RUN /bin/sh -c rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /demo-app |
| RUN /bin/sh -c python3 -m pip install seleniumbase pyautogui # buildkit |
| RUN /bin/sh -c seleniumbase get chromedriver --path # buildkit |
| COPY requirements.txt . # buildkit |
| RUN /bin/sh -c python3 -m pip install -r requirements.txt # buildkit |
| COPY src/demo.py . # buildkit |
| CMD ["/bin/sh" "-c" "python3 /demo-app/demo.py"] |