Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 568 Bytes

README.md

File metadata and controls

38 lines (21 loc) · 568 Bytes

Selenium-Crystal

What for

For using Selenium(ChromeDriver) with Crystal lang

Attentions

  • Use user seluser to use selenium
    • Don't forget add a permission of your directory by sudo chown -R seluser:seluser YOUR_DIR_PATH

Config

ARG

  • CRYSTAL_VER (Default: 0.32.1)

ENV

  • CRYSTAL_CACHE_DIR (Default: $HOME/.cashe/crystal)

Base Image

  • selenium/standalone-chrome

Sample

FROM tktcorporation/selenium-crystal:latest

WORKDIR /srv/crawler

COPY ./ ./
RUN sudo chown -R seluser:seluser /srv/crawler

RUN shards