FROM ubuntu:latest VOLUME .:/project WORKDIR /project RUN echo '\n\ Package: *\n\ Pin: origin packages.mozilla.org\n\ Pin-Priority: 1000\n\ ' | tee /etc/apt/preferences.d/mozilla RUN cat /etc/apt/preferences.d/mozilla RUN apt -y update RUN apt -y install curl tar firefox RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -v --default-toolchain nightly --profile complete RUN install -d -m 0755 /etc/apt/keyrings RUN curl --proto '=https' --tlsv1.2 -sSf https://packages.mozilla.org/apt/repo-signing-key.gpg | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null RUN echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null RUN curl --proto '=https' --tlsv1.2 -sSfL https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz | tar xz CMD ["/bin/bash"]