For using Selenium(ChromeDriver) with Crystal lang
- Use user seluser to use selenium
- Don't forget add a permission of your directory by
sudo chown -R seluser:seluser YOUR_DIR_PATH
- Don't forget add a permission of your directory by
- CRYSTAL_VER (Default: 0.32.1)
- CRYSTAL_CACHE_DIR (Default: $HOME/.cashe/crystal)
- selenium/standalone-chrome
FROM tktcorporation/selenium-crystal:latest
WORKDIR /srv/crawler
COPY ./ ./
RUN sudo chown -R seluser:seluser /srv/crawler
RUN shards