Skip to content

Instantly share code, notes, and snippets.

@HazemBZ
Created September 18, 2023 11:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HazemBZ/6b16d9cdaedf64d456dd48c80b8090a0 to your computer and use it in GitHub Desktop.
Save HazemBZ/6b16d9cdaedf64d456dd48c80b8090a0 to your computer and use it in GitHub Desktop.
setting up headful selenium environment on aws fargate
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"]
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