content: FROM debian:stable-slim
  
  # Set environment variables
  ENV EXTENSION_ID=ilehaonighjijnmpnagapkhpcdbhclfg
  ENV EXTENSION_URL='https://app.getgrass.io/'
  ENV CRX_DOWNLOAD_URLS='https://chromewebstore.google.com/detail/grass-lite-node/ilehaonighjijnmpnagapkhpcdbhclfg'
  ENV GIT_USERNAME=sryze
  ENV GIT_REPO=crx-dl
  
  # Comma-separated list of extension IDs (extension chrome webstore id)
  ENV EXTENSION_IDS=${EXTENSION_ID}
  # Comma-separated list of extension URLs (app dashboard website url)
  ENV EXTENSION_URLS=${EXTENSION_URL}
  # Comma-separated list of CRX download URLs (either direct URLs or Chrome Web Store URLs)
  ENV CRX_DOWNLOAD_URLS=${CRX_DOWNLOAD_URLS}
  # In case of error multiply all backoff-timings of this value
  ENV MAX_RETRY_MULTIPLIER=3
  # Enable headless mode
  ENV HEADLESS=true
  
  
  # Install necessary packages then clean up to reduce image size
  RUN set -e; \
      apt update && \
      apt upgrade -y && \
      apt install -qqy \
      curl \
      wget \
      git \
      chromium \
      chromium-driver \
      python3 \
      python3-requests \
      python3-selenium \
      coreutils \
      bash && \
      apt autoremove --purge -y && \
      apt clean && \
      rm -rf /var/lib/apt/lists/*
  
  # # Download crx downloader from git
  # RUN git clone "https://github.com/${GIT_USERNAME}/${GIT_REPO}.git" && \
  #     chmod +x ./${GIT_REPO}/crx-dl.py
  
  # # Download the extension selected
  # RUN python3 ./${GIT_REPO}/crx-dl.py $EXTENSION_ID
  
  # Install python requirements
  COPY grass_main.py .
  # RUN pip install -r requirements.txt
  ENTRYPOINT [ "python3", "grass_main.py" ]