Created
September 18, 2023 11:36
-
-
Save HazemBZ/6b16d9cdaedf64d456dd48c80b8090a0 to your computer and use it in GitHub Desktop.
setting up headful selenium environment on aws fargate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM selenium/standalone-chrome as build | |
USER root | |
RUN apt-get update && apt-get install python3-distutils xvfb -y | |
RUN wget https://bootstrap.pypa.io/get-pip.py | |
RUN python3 get-pip.py | |
FROM build as install | |
COPY requirements.txt . | |
RUN python3 -m pip install -r requirements.txt | |
FROM install | |
COPY fargate.py ./ | |
COPY classes/* ./classes/ | |
COPY tasks/* ./ | |
ENTRYPOINT ["python3", "-u", "fargate.py"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requests==2.26.0 | |
selenium==4.4.0 | |
pyvirtualdisplay | |
boto3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment