FROM erlang:24
RUN apt-get update && apt-get install -y yaws
COPY . /opt
WORKDIR /opt
RUN bin/referl -build tool -yaws_path /usr/lib/yaws/ebin
ENTRYPOINT bin/referl -db kcmini -web2 -yaws_path /usr/lib/yaws/ebin -browser_root /code