# FROM selenium/standalone-chrome:108.0 AS final
# FROM selenium/standalone-chrome:133.0-20250606 AS final
FROM selenium/standalone-chrome:latest AS final

COPY ./chromedriver /bin/chromedriver
RUN mkdir -p /home/seluser/profile/nigga

ENV TZ=Europe/Brussels
# 30 minutes session timeout
ENV SE_OPTS="--session-timeout 1800"

HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -s http://localhost:4444/wd/hub/status | jq -e '.value.ready == true' || exit 1


