diff --git a/Dockerfile b/Dockerfile index 9e0dbb0..16bfbd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,10 @@ -FROM crystallang/crystal:1.14.1 +FROM crystallang/crystal:latest WORKDIR /data EXPOSE 3002 -RUN apt-get update \ - && apt-get install -y \ - libnss3 \ - libgconf-2-4 \ - chromium-browser \ - firefox \ - && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN apt-get update && \ + apt-get install -y chromium-browser firefox && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY . /data diff --git a/README.md b/README.md index 96db72d..4ba58b1 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,16 @@ require "lucky_flow/ext/authentic" View guide at: https://luckyframework.org/guides/browser-tests/ +## Development + +> [!NOTE] +> If you use Flatpak to install Chrome, specs will fail to detect your Chrome binary. +> Install Chrome via a standard package install. + +- Run format `crystal tool format spec/ src/` +- Run Ameba `./bin/ameba` +- Run specs `crystal spec` (or via docker with `./script/setup` and `./script/test`) + ## Contributing 1. Fork it ( https://github.com/luckyframework/lucky_flow/fork )